1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-23 11:56:00 +01:00

Use iterator compatible Array instantiation (#324)

This commit is contained in:
Matt Gibson 2021-04-05 17:49:39 -05:00 committed by GitHub
parent ba742f72d8
commit baca6d7966
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ export class Cipher {
} }
if (view.collectionIds || req.collectionIds) { if (view.collectionIds || req.collectionIds) {
const set = new Set((view.collectionIds ?? []).concat(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.name = req.name;
view.notes = req.notes; view.notes = req.notes;