mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Do not update value if it's not changed (#60746)
This commit is contained in:
parent
54f8c49868
commit
6662e48e93
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ function useFallbackMetric(
|
|||
.filter(isCompatibleAgg)
|
||||
.find(aggregation => aggregation.id === value);
|
||||
|
||||
if (!respAgg) {
|
||||
if (!respAgg && value !== fallbackValue) {
|
||||
setValue(fallbackValue);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue