mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-09 18:39:41 +02:00
add structuredClone
in pie getConfig
This commit is contained in:
@@ -37,7 +37,7 @@ const setConfig = (conf: PieDiagramConfig): void => {
|
||||
config = cleanAndMerge(DEFAULT_PIE_CONFIG, conf);
|
||||
};
|
||||
|
||||
const getConfig = (): Required<PieDiagramConfig> => config;
|
||||
const getConfig = (): Required<PieDiagramConfig> => structuredClone(config);
|
||||
|
||||
const resetConfig = (): void => {
|
||||
config = structuredClone(DEFAULT_PIE_CONFIG);
|
||||
|
Reference in New Issue
Block a user