diff --git a/packages/survey-core/src/survey.ts b/packages/survey-core/src/survey.ts index 98e3d7d9c9..cb98051e41 100644 --- a/packages/survey-core/src/survey.ts +++ b/packages/survey-core/src/survey.ts @@ -8275,7 +8275,7 @@ export class SurveyModel extends SurveyElementCore public applyTheme(theme: ITheme, baseTheme?: ITheme): void { if (!theme && !baseTheme) return; - const themeToApply = baseTheme ? mergeObjects({}, baseTheme, theme) : theme; + const themeToApply = baseTheme ? mergeObjects({}, baseTheme, theme) : mergeObjects({}, theme); return this._applyTheme(themeToApply); } private _applyTheme(theme: ITheme): void {