Skip to content

Commit

Permalink
Revert "Avoid type that do not match regex in TypeSelect"
Browse files Browse the repository at this point in the history
This reverts commit cda82fc.
  • Loading branch information
cmd-ntrf committed Jun 17, 2024
1 parent ec81bb1 commit ae79882
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/src/components/cluster/TypeSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,7 @@ export default {
items() {
let items = [];
TYPE_CATEGORIES.forEach(({ prefix, name }) => {
const types = this.types.filter((type) => {
type.startsWith(prefix) && type.match(TYPE_REGEX) != null;
});
const types = this.types.filter((type) => type.startsWith(prefix));
if (types.length > 0) {
if (items.length > 0) {
items.push({ divider: true });
Expand Down

0 comments on commit ae79882

Please sign in to comment.