diff --git a/app/pages/lab-pages-editor/components/TasksPage/TasksPage.jsx b/app/pages/lab-pages-editor/components/TasksPage/TasksPage.jsx index a6fbe903a5..b1c1ed6999 100644 --- a/app/pages/lab-pages-editor/components/TasksPage/TasksPage.jsx +++ b/app/pages/lab-pages-editor/components/TasksPage/TasksPage.jsx @@ -155,7 +155,7 @@ export default function TasksPage() { } function handleChangeStartingPage(e) { - console.log('+++ handleChangeStartingPage: ', e); + console.log('+++ handleChangeStartingPage: ', e?.target?.value); } // Changes the optional "next page" of a step/page diff --git a/app/pages/lab-pages-editor/components/WorkflowHeader.jsx b/app/pages/lab-pages-editor/components/WorkflowHeader.jsx index cdc4826fc3..95027c6736 100644 --- a/app/pages/lab-pages-editor/components/WorkflowHeader.jsx +++ b/app/pages/lab-pages-editor/components/WorkflowHeader.jsx @@ -21,7 +21,7 @@ export default function WorkflowHeader({ // When clicking a tab button, make that tab active. This is pretty straightforward. function onClick(e) { - const { tab } = e.target.dataset; + const { tab } = e?.target?.dataset || {}; setCurrentTab(parseInt(tab)); } diff --git a/app/pages/lab-pages-editor/components/WorkflowSettingsPage/WorkflowSettingsPage.jsx b/app/pages/lab-pages-editor/components/WorkflowSettingsPage/WorkflowSettingsPage.jsx index ac0573d266..0385ef85ec 100644 --- a/app/pages/lab-pages-editor/components/WorkflowSettingsPage/WorkflowSettingsPage.jsx +++ b/app/pages/lab-pages-editor/components/WorkflowSettingsPage/WorkflowSettingsPage.jsx @@ -13,9 +13,10 @@ export default function WorkflowSettingsPage() { } function doUpdate(e) { - const key = e.target.name; - let value = e.target.value || ''; - const { updaterule } = e.target.dataset; + const key = e?.target?.name; + let value = e?.target?.value || ''; + const { updaterule } = e?.target?.dataset || {}; + if (!key) return; if (updaterule === 'convert_to_number') value = parseInt(value); if (updaterule === 'undefined_if_empty') value = value || undefined;