Convert Sets to Arrays before saving locally (#383)

This commit is contained in:
Thomas Rittson 2021-05-19 10:10:20 +10:00 committed by GitHub
parent 3d4ecaeb6a
commit c8eca37183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

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