mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-12 17:48:59 +08:00
fix: fixed selected value getting reset for variables and refetch not going (#7115)
This commit is contained in:
parent
966f11fd5c
commit
43a1fa53aa
@ -150,11 +150,13 @@ function VariableItem({
|
|||||||
let allSelected = false;
|
let allSelected = false;
|
||||||
// The default value for multi-select is ALL and first value for
|
// The default value for multi-select is ALL and first value for
|
||||||
// single select
|
// single select
|
||||||
if (variableData.multiSelect) {
|
if (valueNotInList) {
|
||||||
value = newOptionsData;
|
if (variableData.multiSelect) {
|
||||||
allSelected = true;
|
value = newOptionsData;
|
||||||
} else {
|
allSelected = true;
|
||||||
[value] = newOptionsData;
|
} else {
|
||||||
|
[value] = newOptionsData;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (variableData && variableData?.name && variableData?.id) {
|
if (variableData && variableData?.name && variableData?.id) {
|
||||||
@ -226,6 +228,9 @@ function VariableItem({
|
|||||||
}
|
}
|
||||||
setErrorMessage(message);
|
setErrorMessage(message);
|
||||||
}
|
}
|
||||||
|
setVariablesToGetUpdated((prev) =>
|
||||||
|
prev.filter((v) => v !== variableData.name),
|
||||||
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user