From 100943443b7cb3a2e271574f9b5f93cfcae98e2e Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Mon, 13 Feb 2023 12:36:04 +0100 Subject: [PATCH] update flow viewer --- frontend/src/lib/components/graph/FlowGraph.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/components/graph/FlowGraph.svelte b/frontend/src/lib/components/graph/FlowGraph.svelte index c7c9ee0e98..a7a112046a 100644 --- a/frontend/src/lib/components/graph/FlowGraph.svelte +++ b/frontend/src/lib/components/graph/FlowGraph.svelte @@ -123,7 +123,7 @@ const branches = [ { summary: 'Default branch', modules: module.value.default }, ...module.value.branches.map((b, i) => ({ - summary: b.summary ?? 'Branch ' + (i + 1), + summary: defaultIfEmptyString(b.summary, 'Branch ' + (i + 1)), modules: b.modules })) ] @@ -136,7 +136,7 @@ ) } else if (type === 'branchall') { const branches = module.value.branches.map((b, i) => ({ - summary: b.summary ?? `Branch ${i + 1}`, + summary: defaultIfEmptyString(b.summary, `Branch ${i + 1}`), modules: b.modules })) return flowModuleToBranch(module, branches, [], parent, insideLoop)