mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
do deep cloning on section field in pie clear
This commit is contained in:
parent
bdb967e0a8
commit
231a9630df
@ -65,7 +65,7 @@ const cleanupValue = (value: string): number => {
|
||||
};
|
||||
|
||||
const clear = (): void => {
|
||||
sections = DEFAULT_PIE_DB.sections;
|
||||
sections = JSON.parse(JSON.stringify(DEFAULT_PIE_DB.sections));
|
||||
showData = DEFAULT_PIE_DB.showData;
|
||||
commonClear();
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user