diff --git a/public/app/features/dashboard/state/getPanelOptionsWithDefaults.ts b/public/app/features/dashboard/state/getPanelOptionsWithDefaults.ts index 2bf513a9e9a..ebe9e9c4c5b 100644 --- a/public/app/features/dashboard/state/getPanelOptionsWithDefaults.ts +++ b/public/app/features/dashboard/state/getPanelOptionsWithDefaults.ts @@ -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); }