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

Just need to check if array

parent a745c3c0
......@@ -219,8 +219,7 @@ export default {
});
}
if (labelName?.length) {
if (Array.isArray(labelName)) {
if (labelName?.length && Array.isArray(labelName)) {
filteredSearchValue.push(
...labelName.map((label) => ({
type: 'label_name',
......@@ -228,12 +227,6 @@ export default {
})),
);
}
} else {
filteredSearchValue.push({
type: 'label_name',
value: { data: labelName, operator: OPERATOR_IS },
});
}
if (notLabelName?.length) {
filteredSearchValue.push(
...notLabelName.map((label) => ({
......
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