diff --git a/frontend/src/Editor/EditorFunc.jsx b/frontend/src/Editor/EditorFunc.jsx index 89931834f3..bc9909cffc 100644 --- a/frontend/src/Editor/EditorFunc.jsx +++ b/frontend/src/Editor/EditorFunc.jsx @@ -256,7 +256,7 @@ const EditorComponent = (props) => { canvasContainerRef.current.scrollLeft += editorMarginLeft; } // eslint-disable-next-line react-hooks/exhaustive-deps - }, [editorMarginLeft]); + }, [editorMarginLeft, canvasContainerRef?.current]); useEffect(() => { if (mounted) { diff --git a/frontend/src/Editor/Inspector/ActionConfigurationPanels/GotoApp.jsx b/frontend/src/Editor/Inspector/ActionConfigurationPanels/GotoApp.jsx index d42ebee133..3c8636d647 100644 --- a/frontend/src/Editor/Inspector/ActionConfigurationPanels/GotoApp.jsx +++ b/frontend/src/Editor/Inspector/ActionConfigurationPanels/GotoApp.jsx @@ -6,8 +6,10 @@ import { useTranslation } from 'react-i18next'; export function GotoApp({ getAllApps, event, handlerChanged, eventIndex, darkMode }) { const queryParamChangeHandler = (index, key, value) => { - event.queryParams[index][key] = value; - handlerChanged(eventIndex, 'queryParams', event.queryParams); + if (event?.queryParams?.[index]?.[key]) { + event.queryParams[index][key] = value; + handlerChanged(eventIndex, 'queryParams', event.queryParams); + } }; const { t } = useTranslation(); diff --git a/frontend/src/Editor/Inspector/ActionConfigurationPanels/SwitchPage.jsx b/frontend/src/Editor/Inspector/ActionConfigurationPanels/SwitchPage.jsx index cd3dffe52e..dc697c4797 100644 --- a/frontend/src/Editor/Inspector/ActionConfigurationPanels/SwitchPage.jsx +++ b/frontend/src/Editor/Inspector/ActionConfigurationPanels/SwitchPage.jsx @@ -69,7 +69,7 @@ export function SwitchPage({ getPages, event, handlerChanged, eventIndex, darkMo