diff --git a/src/webpage/favorites.ts b/src/webpage/favorites.ts index 3ffb611..0c1799c 100644 --- a/src/webpage/favorites.ts +++ b/src/webpage/favorites.ts @@ -195,7 +195,7 @@ export class Favorites { return this.old; } setOld(newold: favandfreqimp) { - this.old = newold; + this.old = structuredClone(newold); this.saveLocal(); return; }