From 2849d0d1d6714b8ae780ea9f86c90a1fce80c10a Mon Sep 17 00:00:00 2001 From: ma7payne Date: Thu, 25 Jul 2024 09:38:45 -0300 Subject: [PATCH] fix(HUDS): elimina reemplazo de privacy en elemento rup --- src/app/modules/rup/components/core/rup.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/modules/rup/components/core/rup.component.ts b/src/app/modules/rup/components/core/rup.component.ts index f162b13f3f..5bf72f1fa5 100644 --- a/src/app/modules/rup/components/core/rup.component.ts +++ b/src/app/modules/rup/components/core/rup.component.ts @@ -78,9 +78,10 @@ export class RUPComponent implements OnInit, AfterViewInit, OnDestroy { * @memberof RUPComponent */ private loadComponent() { - if (this.registro) { + + if (this.registro && !this.registro?.privacy) { setTimeout(() => { - if (this.registro && !this.registro.privacy && this.params?.privacy) { + if (this.params?.privacy) { this.registro.privacy = { scope: this.params.privacy }; } else { this.registro.privacy = { scope: 'public' };