update flow viewer

This commit is contained in:
Ruben Fiszel
2023-02-13 12:36:04 +01:00
parent 77a7b8a539
commit 100943443b
@@ -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)