diff --git a/frontend/src/components/cluster/TypeSelect.vue b/frontend/src/components/cluster/TypeSelect.vue index 1a7c2182..132c677d 100644 --- a/frontend/src/components/cluster/TypeSelect.vue +++ b/frontend/src/components/cluster/TypeSelect.vue @@ -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") {