Browse Source

validación extra para formato de botones

EmilianoOrtiz 3 weeks ago
parent
commit
b02b518841

+ 2 - 0
src/app/components/template/notification-dialog/notification-dialog.component.ts

@@ -83,6 +83,8 @@ export class NotificationDialogComponent implements OnInit {
       if (!this.hasError) {
         let notificationActionsArr: NotificationAction[] = JSON.parse(
           notification.response.ACCIONES
+        ).filter((action: any) => 
+          action.BOTON && action.FUNCION && action.PARAMETROS
         );
 
         notification.response.ACCIONES_ARR = notificationActionsArr;