Commit a745c3c0 authored by Donald Cook's avatar Donald Cook

Fixed bug without [] in label url

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