Skip to content

Commit 69a9a18

Browse files
committed
Date and email property components
1 parent 19435b6 commit 69a9a18

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

meta_configurator/src/components/panels/gui-editor/resolveCorrespondingComponent.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,6 @@ export function resolveCorrespondingComponent(
7777
...propsObject,
7878
});
7979
}
80-
81-
if (nodeData.schema.hasType('string')) {
82-
// @ts-ignore
83-
return h(StringProperty, propsObject);
84-
}
85-
8680
if (nodeData.schema.hasType('string') && nodeData.schema.format === 'date') {
8781
// @ts-ignore
8882
return h(DateProperty, propsObject);
@@ -92,6 +86,10 @@ export function resolveCorrespondingComponent(
9286
// @ts-ignore
9387
return h(EmailProperty, propsObject);
9488
}
89+
if (nodeData.schema.hasType('string')) {
90+
// @ts-ignore
91+
return h(StringProperty, propsObject);
92+
}
9593

9694
if (nodeData.schema.hasType('boolean')) {
9795
// @ts-ignore

0 commit comments

Comments
 (0)