Skip to content

Commit 001cd93

Browse files
committed
Added actions
1 parent d843cdd commit 001cd93

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

components/workflow_max/workflow_max.app.mjs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ export default {
2020
: [
2121
clients,
2222
];
23-
return clientsArray.map((client) => ({
24-
label: client.Name,
25-
value: client.UUID,
26-
}));
23+
return clientsArray
24+
.filter((client) => client && client.Name && client.UUID)
25+
.map((client) => ({
26+
label: client.Name,
27+
value: client.UUID,
28+
}));
2729
},
2830
},
2931
name: {
@@ -51,7 +53,7 @@ export default {
5153
: [
5254
groups,
5355
];
54-
return groupsArray.map((group) => ({
56+
return groupsArray.filter((group) => group && group.Name && group.UUID).map((group) => ({
5557
label: group.Name,
5658
value: group.UUID,
5759
}));

0 commit comments

Comments
 (0)