Skip to content

Commit

Permalink
fix(ui): load topology graph on flow creation (#4552)
Browse files Browse the repository at this point in the history
  • Loading branch information
MilosPaunovic committed Aug 5, 2024
1 parent 3253857 commit 3fb54f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/components/inputs/EditorView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,10 @@
);
const flowHaveTasks = (source) => {
const isFlow = currentTab?.value?.flow;
const isFlow = currentTab?.value?.flow || props.isCreating;
if (isFlow) {
const flow = source ? source : flowYaml.value;
const flow = props.isCreating ? props.flow.source : (source ? source : flowYaml.value);
return flow ? YamlUtils.flowHaveTasks(flow) : false;
} else return false;
};
Expand Down

0 comments on commit 3fb54f0

Please sign in to comment.