Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,6 @@ export class AutoCompleteComponent extends FieldBase implements OnInit {
// Set component specific properties
const { value, listType, parameters } = this.configProps$;

if (value != undefined) {
const index = this.options$?.findIndex(element => element.key === value);
this.value$ = index > -1 ? this.options$[index].value : value;
this.fieldControl.setValue(this.value$);
}

this.listType = listType;
this.parameters = parameters;

Expand All @@ -119,6 +113,12 @@ export class AutoCompleteComponent extends FieldBase implements OnInit {
const results = await this.dataPageService.getDataPageData(datasource, this.parameters, context);
this.fillOptions(results);
}

if (value != undefined) {
const index = this.options$?.findIndex(element => element.key === value);
this.value$ = index > -1 ? this.options$[index].value : value;
this.fieldControl.setValue(this.value$);
}
}

generateColumnsAndDataSource() {
Expand Down
Loading