From baca6d79663e3158af6c46bc6dad7ac7415175c1 Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Mon, 5 Apr 2021 17:49:39 -0500 Subject: [PATCH] Use iterator compatible Array instantiation (#324) --- src/models/export/cipher.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/models/export/cipher.ts b/src/models/export/cipher.ts index 07b8b56427..0e76278f90 100644 --- a/src/models/export/cipher.ts +++ b/src/models/export/cipher.ts @@ -37,7 +37,7 @@ export class Cipher { } if (view.collectionIds || req.collectionIds) { const set = new Set((view.collectionIds ?? []).concat(req.collectionIds ?? [])); - view.collectionIds = [...set]; + view.collectionIds = Array.from(set.values()); } view.name = req.name; view.notes = req.notes;