From c71e9d461532f1d100dcdecf23503bc7d562e533 Mon Sep 17 00:00:00 2001 From: Nina Kylstad Date: Mon, 31 Oct 2022 14:07:28 +0100 Subject: [PATCH] extract hidden prop for custom components --- .../src/components/custom/CustomWebComponent.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/altinn-app-frontend/src/components/custom/CustomWebComponent.tsx b/src/altinn-app-frontend/src/components/custom/CustomWebComponent.tsx index e77d59c97a..92d7c36503 100644 --- a/src/altinn-app-frontend/src/components/custom/CustomWebComponent.tsx +++ b/src/altinn-app-frontend/src/components/custom/CustomWebComponent.tsx @@ -17,6 +17,7 @@ function CustomWebComponent({ textResourceBindings, dataModelBindings, language, + hidden, handleDataChange, ...passThroughProps }: ICustomComponentProps) { @@ -62,7 +63,7 @@ function CustomWebComponent({ } }, [formData, componentValidations]); - if (!Tag || !textResources) { + if (hidden || !Tag || !textResources) { return null; }