Commit 9a1a4a11 authored by Emiliano Balbuena's avatar Emiliano Balbuena

(fix): Deep clone the JSON entity object on modals

1 merge request!571(fix): Minds Pro staging feedback
Pipeline #84478170 running with stages
......@@ -106,7 +106,7 @@ export class MediaModalComponent implements OnInit, OnDestroy {
routerSubscription: Subscription;
@Input('entity') set data(params: MediaModalParams) {
this.entity = params.entity;
this.entity = JSON.parse(JSON.stringify(params.entity)); // deep clone
this.redirectUrl = params.redirectUrl || null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment