diff --git a/packages/ui-concerto/src/modelBuilderVisitor.js b/packages/ui-concerto/src/modelBuilderVisitor.js index 7deea7c..577c638 100644 --- a/packages/ui-concerto/src/modelBuilderVisitor.js +++ b/packages/ui-concerto/src/modelBuilderVisitor.js @@ -70,14 +70,14 @@ class ModelBuilderVisitor extends ReactFormVisitor { visitMetaConceptDeclaration(declaration, parameters) { const props = declaration.getProperties(); - const className = props.find(({ name }) => name === 'name'); + const identifier = props.find(({ name }) => name === 'name'); const superType = props.find(({ name }) => name === 'superType'); const properties = props.find(({ name }) => name === 'properties'); return
-
-
{className.accept(this, parameters)}
-
{superType.accept(this, parameters)}
+
+
{identifier.accept(this, parameters)}
+ {superType &&
{superType.accept(this, parameters)}
}
{properties.accept(this, parameters)}