mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-06 23:45:52 -05:00
fix: avoid writing mobx data to localforage
This commit is contained in:
parent
189d0b5ff9
commit
5029d0ac86
1 changed files with 4 additions and 1 deletions
|
@ -104,7 +104,10 @@ export default class State {
|
|||
*/
|
||||
async save() {
|
||||
for (const [id, store] of this.persistent) {
|
||||
await localforage.setItem(id, store.toJSON());
|
||||
await localforage.setItem(
|
||||
id,
|
||||
JSON.parse(stringify(store.toJSON())),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue