mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 16:53:34 +00:00
Use iterator compatible Array instantiation (#324)
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user