mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-27 12:36:14 +01:00
Resolve edit always being true for ciphers
I noticed that ciphers will always have `edit = True` even if the sync response has `edit = false`. The root cause seems to be a boolean default to true. And since `false || true => true` it would always be set to true.
This commit is contained in:
parent
2858724f44
commit
ab506ffbdb
@ -38,7 +38,7 @@ export class CipherResponse extends BaseResponse {
|
|||||||
this.name = this.getResponseProperty('Name');
|
this.name = this.getResponseProperty('Name');
|
||||||
this.notes = this.getResponseProperty('Notes');
|
this.notes = this.getResponseProperty('Notes');
|
||||||
this.favorite = this.getResponseProperty('Favorite') || false;
|
this.favorite = this.getResponseProperty('Favorite') || false;
|
||||||
this.edit = this.getResponseProperty('Edit') || true;
|
this.edit = !!this.getResponseProperty('Edit');
|
||||||
this.organizationUseTotp = this.getResponseProperty('OrganizationUseTotp');
|
this.organizationUseTotp = this.getResponseProperty('OrganizationUseTotp');
|
||||||
this.revisionDate = this.getResponseProperty('RevisionDate');
|
this.revisionDate = this.getResponseProperty('RevisionDate');
|
||||||
this.collectionIds = this.getResponseProperty('CollectionIds');
|
this.collectionIds = this.getResponseProperty('CollectionIds');
|
||||||
|
Loading…
Reference in New Issue
Block a user