mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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