Commit a745c3c0 authored by Donald Cook's avatar Donald Cook

Fixed bug without [] in label url

parent c8780dfb
......@@ -220,12 +220,19 @@ export default {
}
if (labelName?.length) {
filteredSearchValue.push(
...labelName.map((label) => ({
type: 'label_name',
value: { data: label, operator: OPERATOR_IS },
})),
);
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 (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