TSK-1496: Fixed error in console when creating new workbasket
This commit is contained in:
parent
0d590b29ef
commit
bdf761d29c
|
@ -51,7 +51,7 @@
|
|||
'has-error': !accessItem.value.accessId }">
|
||||
|
||||
<taskana-shared-type-ahead formControlName="accessId"
|
||||
placeHolderMessage="* Access id is required"
|
||||
placeHolderMessage="Access id *"
|
||||
[validationValue]="toggleValidationAccessIdMap.get(index)"
|
||||
[displayError]="!isFieldValid('accessItem.value.accessId', index)"
|
||||
(selectedItem)="accessItemSelected($event, index)">
|
||||
|
|
|
@ -7,8 +7,7 @@ import {
|
|||
OnInit,
|
||||
QueryList,
|
||||
SimpleChanges,
|
||||
ViewChildren,
|
||||
HostListener
|
||||
ViewChildren
|
||||
} from '@angular/core';
|
||||
import { Observable, Subject } from 'rxjs';
|
||||
import { Actions, ofActionCompleted, Select, Store } from '@ngxs/store';
|
||||
|
@ -182,7 +181,7 @@ export class WorkbasketAccessItemsComponent implements OnInit, OnChanges, OnDest
|
|||
}
|
||||
|
||||
init() {
|
||||
if (!this.workbasket._links.accessItems) {
|
||||
if (!this.workbasket._links?.accessItems) {
|
||||
return;
|
||||
}
|
||||
this.requestInProgressService.setRequestInProgress(true);
|
||||
|
|
|
@ -217,8 +217,10 @@ export class WorkbasketInformationComponent implements OnInit, OnChanges, OnDest
|
|||
}
|
||||
|
||||
onSelectedOwner(owner: AccessIdDefinition) {
|
||||
if (owner?.accessId) {
|
||||
this.workbasket.owner = owner.accessId;
|
||||
}
|
||||
}
|
||||
|
||||
getWorkbasketCustomProperty(custom: number) {
|
||||
return `custom${custom}`;
|
||||
|
|
Loading…
Reference in New Issue