Skip to content

Commit

Permalink
fix: better integration of errorMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
TroyV999 committed Sep 13, 2024
1 parent 787452c commit f06c9c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/former/src/components/FormRenderer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
:data-node="node._id"
>
<component
v-if="!edit && showIf ? showIf(node, nodePath.concat(node.name || []), data) : true"
v-if="!edit && showIf ? showIf(node, nodePath.concat(node.name || []), data) : true && errorMessage ? errorMessage(node, data) : true"
:is="edit ? EditComponent : FormComponent"
:node
:node-path="nodePath.concat(node.name || [])"
Expand All @@ -25,7 +25,6 @@
:data="node.name ? data?.[node.name] : undefined"
@update:data="(e: unknown) => setData(node.name, e)"
/>
<div v-if="!errorMessage"><slot/></div>
</div>
</component>
</div>
Expand Down

0 comments on commit f06c9c2

Please sign in to comment.