Skip to content

Commit

Permalink
AAE-24018 Small update
Browse files Browse the repository at this point in the history
  • Loading branch information
wiktord2000 committed Jul 26, 2024
1 parent 75378a7 commit 5fde186
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ export class DropdownCloudWidgetComponent extends WidgetComponent implements OnI
}

private isReadOnlyForm(): boolean {
return this.field?.form?.readOnly ?? false;
return !!this.field?.form?.readOnly;
}

get isReadOnlyField(): boolean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class DropdownWidgetComponent extends WidgetComponent implements OnInit {
}

ngOnInit() {
if (this.field?.restUrl && !this.field?.form?.readOnly) {
if (this.field?.restUrl && !this.isReadOnlyForm()) {
if (this.field.form.taskId) {
this.getValuesByTaskId();
} else {
Expand Down Expand Up @@ -106,4 +106,8 @@ export class DropdownWidgetComponent extends WidgetComponent implements OnInit {
get isReadOnlyField(): boolean {
return this.field.readOnly;
}

private isReadOnlyForm(): boolean {
return !!this.field?.form?.readOnly;
}
}

0 comments on commit 5fde186

Please sign in to comment.