We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b5922b commit baa676aCopy full SHA for baa676a
src/server/views/helpers/flowHelpers.js
@@ -1,11 +1,11 @@
1
const Helpers = {
2
processFlow: function (flow) {
3
if (!flow) return {};
4
- const {job, children} = flow;
+ const {job, children = []} = flow;
5
const filteredChildren = children.filter((child) => child);
6
const queueName = job.queueName;
7
8
- if (filteredChildren && filteredChildren.length > 0) {
+ if (filteredChildren.length > 0) {
9
return {
10
job: {...job, queueName},
11
children: filteredChildren.map((child) => this.processFlow(child)),
0 commit comments