Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Commit

Permalink
Convert Sets to Arrays before saving locally (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliykat committed May 20, 2021
1 parent ab333db commit 62beab8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/electron/services/electronStorage.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ export class ElectronStorageService implements StorageService {
}

save(key: string, obj: any): Promise<any> {
if (obj instanceof Set) {
obj = Array.from(obj);
}
this.store.set(key, obj);
return Promise.resolve();
}
Expand Down

0 comments on commit 62beab8

Please sign in to comment.