mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
Panels: avoid crash while switching between panels types (#35286)
This commit is contained in:
parent
64f5f91d44
commit
351400b82e
@ -198,7 +198,9 @@ export function restoreCustomOverrideRules(current: FieldConfigSource, old: Fiel
|
||||
if (isCustomFieldProp(prop)) {
|
||||
const currentOverride = result.overrides.find((o) => isEqual(o.matcher, override.matcher));
|
||||
if (currentOverride) {
|
||||
currentOverride.properties.push(prop);
|
||||
if (currentOverride !== override) {
|
||||
currentOverride.properties.push(prop);
|
||||
}
|
||||
} else {
|
||||
result.overrides.push(override);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user