diff --git a/lib/api/src/modules/layout.ts b/lib/api/src/modules/layout.ts index e1c8670788d7..8fdddd4151ad 100644 --- a/lib/api/src/modules/layout.ts +++ b/lib/api/src/modules/layout.ts @@ -116,7 +116,7 @@ const applyDeprecatedLayoutOptions = deprecate((options: Options): PartialLayout }, deprecationMessage(deprecatedLayoutOptions)); const checkDeprecatedThemeOptions = (options: Options) => { - if (Object.values(deprecatedThemeOptions).find(v => !!v)) { + if (Object.keys(deprecatedThemeOptions).find((k: 'name' | 'url') => !!options[k])) { return applyDeprecatedThemeOptions(options); } return {};