Skip to content
Snippets Groups Projects
Commit fdb8f88f authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #15570 TIME 0:25 fix check required fields js error

(cherry picked from commit 865a3925)
parent 3010c2e2
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ import { TranslateService } from '@ngx-translate/core';
import { NotificationService } from '@service/notification/notification.service';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { HttpClient } from '@angular/common/http';
import { tap, exhaustMap, finalize, catchError } from 'rxjs/operators';
import { tap, exhaustMap, finalize, catchError, filter } from 'rxjs/operators';
import { of } from 'rxjs';
import { FunctionsService } from '@service/functions.service';
import { NoteEditorComponent } from '@appRoot/notes/note-editor.component';
......@@ -43,7 +43,7 @@ export class CloseMailActionComponent implements OnInit {
checkIndexingClose() {
this.http.get(`../rest/actions/${this.data.action.id}`).pipe(
tap((data: any) => {
this.requiredFields = data.action.parameters.requiredFields;
this.requiredFields = !this.functions.empty(data.action.parameters.requiredFields) ? data.action.parameters.requiredFields : [];
}),
exhaustMap(() => this.http.get(`../rest/customFields`)),
tap((data: any) => this.customFields = data.customFields),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment