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 }">
|
'has-error': !accessItem.value.accessId }">
|
||||||
|
|
||||||
<taskana-shared-type-ahead formControlName="accessId"
|
<taskana-shared-type-ahead formControlName="accessId"
|
||||||
placeHolderMessage="* Access id is required"
|
placeHolderMessage="Access id *"
|
||||||
[validationValue]="toggleValidationAccessIdMap.get(index)"
|
[validationValue]="toggleValidationAccessIdMap.get(index)"
|
||||||
[displayError]="!isFieldValid('accessItem.value.accessId', index)"
|
[displayError]="!isFieldValid('accessItem.value.accessId', index)"
|
||||||
(selectedItem)="accessItemSelected($event, index)">
|
(selectedItem)="accessItemSelected($event, index)">
|
||||||
|
@ -130,4 +130,4 @@
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,8 +7,7 @@ import {
|
||||||
OnInit,
|
OnInit,
|
||||||
QueryList,
|
QueryList,
|
||||||
SimpleChanges,
|
SimpleChanges,
|
||||||
ViewChildren,
|
ViewChildren
|
||||||
HostListener
|
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
import { Observable, Subject } from 'rxjs';
|
import { Observable, Subject } from 'rxjs';
|
||||||
import { Actions, ofActionCompleted, Select, Store } from '@ngxs/store';
|
import { Actions, ofActionCompleted, Select, Store } from '@ngxs/store';
|
||||||
|
@ -182,7 +181,7 @@ export class WorkbasketAccessItemsComponent implements OnInit, OnChanges, OnDest
|
||||||
}
|
}
|
||||||
|
|
||||||
init() {
|
init() {
|
||||||
if (!this.workbasket._links.accessItems) {
|
if (!this.workbasket._links?.accessItems) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.requestInProgressService.setRequestInProgress(true);
|
this.requestInProgressService.setRequestInProgress(true);
|
||||||
|
|
|
@ -217,7 +217,9 @@ export class WorkbasketInformationComponent implements OnInit, OnChanges, OnDest
|
||||||
}
|
}
|
||||||
|
|
||||||
onSelectedOwner(owner: AccessIdDefinition) {
|
onSelectedOwner(owner: AccessIdDefinition) {
|
||||||
this.workbasket.owner = owner.accessId;
|
if (owner?.accessId) {
|
||||||
|
this.workbasket.owner = owner.accessId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
getWorkbasketCustomProperty(custom: number) {
|
getWorkbasketCustomProperty(custom: number) {
|
||||||
|
|
Loading…
Reference in New Issue