fix simple step flow rendering for while loop (#4804)

This commit is contained in:
Lucas Abel
2024-11-27 16:07:16 +01:00
committed by GitHub
parent 34609a7d8c
commit ff92e2f897
@@ -713,7 +713,7 @@
if (jobLoaded.job_kind == 'script' || jobLoaded.job_kind == 'flowscript' || jobLoaded.job_kind == 'preview') {
let id: string | undefined = undefined
if (innerModule?.type == 'forloopflow' && innerModule.modules.length == 1) {
if ((innerModule?.type == 'forloopflow' || innerModule?.type == 'whileloopflow') && innerModule.modules.length == 1) {
id = innerModule?.modules?.[0]?.id
}
if (id) {