Skip to content

Commit

Permalink
handle NPE
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Ohlsen <[email protected]>
  • Loading branch information
ohltyler committed Apr 23, 2024
1 parent 48615d7 commit d8848ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/pages/workflows/workflows.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export function Workflows(props: WorkflowsProps) {
{selectedTabId === WORKFLOWS_TAB.MANAGE && <WorkflowList />}
{selectedTabId === WORKFLOWS_TAB.CREATE && <NewWorkflow />}
{selectedTabId === WORKFLOWS_TAB.MANAGE &&
Object.values(workflows).length === 0 &&
Object.keys(workflows || {}).length === 0 &&
!loading && (
<EmptyListMessage
onClickNewWorkflow={() => {
Expand Down

0 comments on commit d8848ef

Please sign in to comment.