Commit 2878ce2f authored by Donald Cook's avatar Donald Cook

Just need to check if array

parent a745c3c0
......@@ -219,20 +219,13 @@ export default {
});
}
if (labelName?.length) {
if (Array.isArray(labelName)) {
filteredSearchValue.push(
...labelName.map((label) => ({
type: 'label_name',
value: { data: label, operator: OPERATOR_IS },
})),
);
}
} else {
filteredSearchValue.push({
type: 'label_name',
value: { data: labelName, operator: OPERATOR_IS },
});
if (labelName?.length && Array.isArray(labelName)) {
filteredSearchValue.push(
...labelName.map((label) => ({
type: 'label_name',
value: { data: label, operator: OPERATOR_IS },
})),
);
}
if (notLabelName?.length) {
filteredSearchValue.push(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment