DashboardScene: Update matcher options immutably (#93960)

This commit is contained in:
Torkel Ödegaard
2024-10-04 17:39:35 +02:00
committed by GitHub
parent 84cee7cab6
commit 938bc9c2cc

View File

@@ -106,8 +106,10 @@ export function getFieldOverrideCategories(
});
const onMatcherConfigChange = (options: unknown) => {
override.matcher.options = options;
onOverrideChange(idx, override);
onOverrideChange(idx, {
...override,
matcher: { ...override.matcher, options },
});
};
const onDynamicConfigValueAdd = (override: ConfigOverrideRule, value: SelectableValue<string>) => {