Commit a745c3c0 authored by Donald Cook's avatar Donald Cook

Fixed bug without [] in label url

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