From 16b0df06b883782de5feaecb96b1fd6d89c69aae Mon Sep 17 00:00:00 2001 From: "Shaun A. Noordin" Date: Fri, 26 Apr 2024 19:15:42 +0100 Subject: [PATCH] TasksPage: hide 'choose starting page' dropdown if 0 steps --- app/pages/lab-pages-editor/components/TasksPage/TasksPage.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/pages/lab-pages-editor/components/TasksPage/TasksPage.jsx b/app/pages/lab-pages-editor/components/TasksPage/TasksPage.jsx index c83af908da..d040477d0a 100644 --- a/app/pages/lab-pages-editor/components/TasksPage/TasksPage.jsx +++ b/app/pages/lab-pages-editor/components/TasksPage/TasksPage.jsx @@ -231,6 +231,7 @@ export default function TasksPage() { aria-label="Choose starting Page" className="flex-item workflow-starting-page" onChange={handleChangeStartingPage} + style={(workflow?.steps?.length < 1) ? { display: 'none' } : undefined} value={firstStepKey} >