From a5afabd3bad79bb144925ee3897eb75361927cd6 Mon Sep 17 00:00:00 2001 From: Bartosz Prusinowski Date: Mon, 29 Jan 2024 08:57:27 +0100 Subject: [PATCH] fix: Data source changes --- app/configurator/configurator-state.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/configurator/configurator-state.tsx b/app/configurator/configurator-state.tsx index a702a6e87..4192e8285 100644 --- a/app/configurator/configurator-state.tsx +++ b/app/configurator/configurator-state.tsx @@ -1565,6 +1565,10 @@ const ConfiguratorStateProviderInternal = ( // eslint-disable-next-line react-hooks/exhaustive-deps }, []); + useEffect(() => { + dispatch({ type: "DATASOURCE_CHANGED", value: dataSource }); + }, [dataSource, dispatch]); + useEffect(() => { try { switch (state.state) {