mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
copy org id too
This commit is contained in:
parent
4a13e62477
commit
6fa3538cbc
@ -103,10 +103,11 @@ export class CollectionService implements CollectionServiceAbstraction {
|
|||||||
collections = await this.getAllDecrypted();
|
collections = await this.getAllDecrypted();
|
||||||
}
|
}
|
||||||
const nodes: Array<TreeNode<CollectionView>> = [];
|
const nodes: Array<TreeNode<CollectionView>> = [];
|
||||||
collections.forEach((f) => {
|
collections.forEach((c) => {
|
||||||
const collectionCopy = new CollectionView();
|
const collectionCopy = new CollectionView();
|
||||||
collectionCopy.id = f.id;
|
collectionCopy.id = c.id;
|
||||||
ServiceUtils.nestedTraverse(nodes, 0, f.name.split(NestingDelimiter), collectionCopy,
|
collectionCopy.organizationId = c.organizationId;
|
||||||
|
ServiceUtils.nestedTraverse(nodes, 0, c.name.split(NestingDelimiter), collectionCopy,
|
||||||
null, NestingDelimiter);
|
null, NestingDelimiter);
|
||||||
});
|
});
|
||||||
return nodes;
|
return nodes;
|
||||||
|
Loading…
Reference in New Issue
Block a user