chore: resolve eslint warnings in packages/mermaid/src/config.ts

This commit is contained in:
Sidharth Vinod
2025-04-19 10:21:41 +05:30
parent 3b0cb1271e
commit 2c5403c0f9

View File

@@ -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) {