mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-09 23:34:08 +01: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