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 17, 2024
1 parent 15d2a97 commit ec81bb1
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 @@ -81,7 +81,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 ec81bb1

Please sign in to comment.