mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-21 16:18:28 +01:00
[PM-1195] Creating a copy of 'this' on ToJson so that it doesn't change the current view. (#5062)
This commit is contained in:
parent
a931f5b9bd
commit
846b15d6d3
@ -68,9 +68,12 @@ export class SendView implements View {
|
||||
}
|
||||
|
||||
toJSON() {
|
||||
return Utils.merge(this, {
|
||||
key: Utils.fromBufferToB64(this.key),
|
||||
});
|
||||
return Utils.merge(
|
||||
{ ...this },
|
||||
{
|
||||
key: Utils.fromBufferToB64(this.key),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
static fromJSON(json: DeepJsonify<SendView>) {
|
||||
|
Loading…
Reference in New Issue
Block a user