Skip to content

Commit

Permalink
Handle case where instance type does not match regex
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd-ntrf committed Jun 13, 2024
1 parent 85f29b8 commit b29ad2c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/components/cluster/TypeSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ export default {
},
methods: {
getTypeDescription(typeName) {
const namedGroupMatches = typeName.match(TYPE_REGEX).groups;
let namedGroupMatches = {};
const typeMatchRegex = typeName.match(TYPE_REGEX);
if (typeMatchRegex != null) {
namedGroupMatches = typeMatchRegex.groups;
}
let descriptionElements = [];
if (typeof namedGroupMatches["gpu"] !== "undefined") {
Expand Down

0 comments on commit b29ad2c

Please sign in to comment.