diff --git a/frontend/src/components/cluster/TypeSelect.vue b/frontend/src/components/cluster/TypeSelect.vue index 62fed952..715d9108 100644 --- a/frontend/src/components/cluster/TypeSelect.vue +++ b/frontend/src/components/cluster/TypeSelect.vue @@ -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") {