TSK-1496: Fixed error in console when creating new workbasket

This commit is contained in:
Sofie Hofmann 2020-12-21 17:20:04 +01:00
parent 0d590b29ef
commit bdf761d29c
3 changed files with 7 additions and 6 deletions

View File

@ -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)">

View File

@ -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);

View File

@ -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}`;