DashboardScene: Update matcher options immutably (#93960)
This commit is contained in:
1 parent
84cee7cab6
commit
938bc9c2cc
1 file changed
+4
-2
@@ -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