mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-14 06:05:58 +08:00
fix: fixed all not deselecting and empty array setting to _ALL_ (#6086)
This commit is contained in:
parent
0806420dd7
commit
80b3c3e256
@ -257,8 +257,7 @@ function VariableItem({
|
|||||||
if (variableData.name) {
|
if (variableData.name) {
|
||||||
if (
|
if (
|
||||||
value === ALL_SELECT_VALUE ||
|
value === ALL_SELECT_VALUE ||
|
||||||
(Array.isArray(value) && value.includes(ALL_SELECT_VALUE)) ||
|
(Array.isArray(value) && value.includes(ALL_SELECT_VALUE))
|
||||||
(Array.isArray(value) && value.length === 0)
|
|
||||||
) {
|
) {
|
||||||
onValueUpdate(variableData.name, variableData.id, optionsData, true);
|
onValueUpdate(variableData.name, variableData.id, optionsData, true);
|
||||||
} else {
|
} else {
|
||||||
@ -324,10 +323,6 @@ function VariableItem({
|
|||||||
Array.isArray(selectedValueStringified) &&
|
Array.isArray(selectedValueStringified) &&
|
||||||
selectedValueStringified.includes(option.toString())
|
selectedValueStringified.includes(option.toString())
|
||||||
) {
|
) {
|
||||||
if (newSelectedValue.length === 0) {
|
|
||||||
handleChange(ALL_SELECT_VALUE);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (newSelectedValue.length === 1) {
|
if (newSelectedValue.length === 1) {
|
||||||
handleChange(newSelectedValue[0].toString());
|
handleChange(newSelectedValue[0].toString());
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user