From 2c5403c0f9bc5c4b2b2137468869415b35fb031b Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Sat, 19 Apr 2025 10:21:41 +0530 Subject: [PATCH] chore: resolve eslint warnings in packages/mermaid/src/config.ts --- packages/mermaid/src/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mermaid/src/config.ts b/packages/mermaid/src/config.ts index 9468a3e46..05788491d 100644 --- a/packages/mermaid/src/config.ts +++ b/packages/mermaid/src/config.ts @@ -30,7 +30,7 @@ export const updateCurrentConfig = (siteCfg: MermaidConfig, _directives: Mermaid if (sumOfDirectives.theme && sumOfDirectives.theme in theme) { const tmpConfigFromInitialize = assignWithDepth({}, configFromInitialize); const themeVariables = assignWithDepth( - tmpConfigFromInitialize.themeVariables || {}, + tmpConfigFromInitialize.themeVariables ?? {}, sumOfDirectives.themeVariables ); if (cfg.theme && cfg.theme in theme) {