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 d843cdd commit 001cd93Copy full SHA for 001cd93
components/workflow_max/workflow_max.app.mjs
@@ -20,10 +20,12 @@ export default {
20
: [
21
clients,
22
];
23
- return clientsArray.map((client) => ({
24
- label: client.Name,
25
- value: client.UUID,
26
- }));
+ return clientsArray
+ .filter((client) => client && client.Name && client.UUID)
+ .map((client) => ({
+ label: client.Name,
27
+ value: client.UUID,
28
+ }));
29
},
30
31
name: {
@@ -51,7 +53,7 @@ export default {
51
53
52
54
groups,
55
- return groupsArray.map((group) => ({
56
+ return groupsArray.filter((group) => group && group.Name && group.UUID).map((group) => ({
57
label: group.Name,
58
value: group.UUID,
59
}));
0 commit comments