Panels: avoid crash while switching between panels types (#35286)
This commit is contained in:
1 parent
64f5f91d44
commit
351400b82e
1 file changed
+3
-1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user