do deep cloning on section field in pie clear

This commit is contained in:
Yokozuna59 2023-06-16 23:30:41 +03:00
parent bdb967e0a8
commit 231a9630df

View File

@ -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();
};