mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-11 10:09:39 +02:00
chore: resolve eslint warnings in packages/mermaid/src/config.ts
This commit is contained in:
@@ -30,7 +30,7 @@ export const updateCurrentConfig = (siteCfg: MermaidConfig, _directives: Mermaid
|
|||||||
if (sumOfDirectives.theme && sumOfDirectives.theme in theme) {
|
if (sumOfDirectives.theme && sumOfDirectives.theme in theme) {
|
||||||
const tmpConfigFromInitialize = assignWithDepth({}, configFromInitialize);
|
const tmpConfigFromInitialize = assignWithDepth({}, configFromInitialize);
|
||||||
const themeVariables = assignWithDepth(
|
const themeVariables = assignWithDepth(
|
||||||
tmpConfigFromInitialize.themeVariables || {},
|
tmpConfigFromInitialize.themeVariables ?? {},
|
||||||
sumOfDirectives.themeVariables
|
sumOfDirectives.themeVariables
|
||||||
);
|
);
|
||||||
if (cfg.theme && cfg.theme in theme) {
|
if (cfg.theme && cfg.theme in theme) {
|
||||||
|
Reference in New Issue
Block a user