Skip to content

Commit

Permalink
TasksPage: update list of starting pages
Browse files Browse the repository at this point in the history
  • Loading branch information
shaunanoordin committed May 17, 2024
1 parent 4db29b0 commit 029a099
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/pages/lab-pages-editor/components/WorkflowHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 029a099

Please sign in to comment.