DashboardScene: Update matcher options immutably (#93960)
This commit is contained in:
@@ -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>) => {
|
||||
|
||||
Reference in New Issue
Block a user