From c8eca37183c5fa67d0b0988402aea49d0f0f505c Mon Sep 17 00:00:00 2001 From: Thomas Rittson <31796059+eliykat@users.noreply.github.com> Date: Wed, 19 May 2021 10:10:20 +1000 Subject: [PATCH] Convert Sets to Arrays before saving locally (#383) --- src/electron/services/electronStorage.service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/electron/services/electronStorage.service.ts b/src/electron/services/electronStorage.service.ts index 6cf5fec57c..b2a92034ac 100644 --- a/src/electron/services/electronStorage.service.ts +++ b/src/electron/services/electronStorage.service.ts @@ -39,6 +39,9 @@ export class ElectronStorageService implements StorageService { } save(key: string, obj: any): Promise { + if (obj instanceof Set) { + obj = Array.from(obj); + } this.store.set(key, obj); return Promise.resolve(); }