diff --git a/src/api/types/Type.js b/src/api/types/Type.js index 8ede9a25ea..bb2b712c20 100644 --- a/src/api/types/Type.js +++ b/src/api/types/Type.js @@ -89,12 +89,13 @@ define(function () { } } } - if (Array.isArray(legacyDefinition.creatable) && 'creation' in legacyDefinition.creatable) { + + if (legacyDefinition.features && legacyDefinition.features.includes("creation")) { definition.creatable = true; } return definition; - } + }; return Type; }); diff --git a/src/ui/components/controls/CreateButton.vue b/src/ui/components/controls/CreateButton.vue index 48b4083b21..0b4f5693f1 100644 --- a/src/ui/components/controls/CreateButton.vue +++ b/src/ui/components/controls/CreateButton.vue @@ -8,23 +8,19 @@ v-if="showCreateMenu">
@@ -65,6 +61,7 @@