Skip to content

Commit

Permalink
extract hidden prop for custom components
Browse files Browse the repository at this point in the history
  • Loading branch information
nkylstad committed Oct 31, 2022
1 parent 7802a21 commit c71e9d4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function CustomWebComponent({
textResourceBindings,
dataModelBindings,
language,
hidden,
handleDataChange,
...passThroughProps
}: ICustomComponentProps) {
Expand Down Expand Up @@ -62,7 +63,7 @@ function CustomWebComponent({
}
}, [formData, componentValidations]);

if (!Tag || !textResources) {
if (hidden || !Tag || !textResources) {
return null;
}

Expand Down

0 comments on commit c71e9d4

Please sign in to comment.