From 52dba1858dbaa1c1a9a1f3bb59d43dbd2dc6482d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20L=C3=BCcke?= Date: Tue, 21 May 2019 16:52:37 +0200 Subject: [PATCH] fix(component): initialize with correct data use props instead of state for mount, to properly initialize conditional fields --- lib/forms/component.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/forms/component.tsx b/lib/forms/component.tsx index 288d927..b4017ea 100644 --- a/lib/forms/component.tsx +++ b/lib/forms/component.tsx @@ -117,7 +117,7 @@ export function configure(opts: ApolloFormConfigureOptio schemaWithConditionals: applyConditionsToSchema( schema, this.props.ui, - this.state.data + this.props.data ) })); }