minor fix
This commit is contained in:
parent
eb146b21c7
commit
7daafdae2e
|
@ -58,10 +58,11 @@ export class PrefillDescriptionDialogComponent extends BaseComponent implements
|
||||||
this.prefillAutoCompleteConfiguration = {
|
this.prefillAutoCompleteConfiguration = {
|
||||||
filterFn: this.searchDescriptions.bind(this),
|
filterFn: this.searchDescriptions.bind(this),
|
||||||
loadDataOnStart: false,
|
loadDataOnStart: false,
|
||||||
displayFn: (item) => (item['label'].length > 60) ? (item['label'].substr(0, 60) + "...") : item['label'],
|
displayFn: (item: Prefilling) => (item.label.length > 60) ? (item.label.substr(0, 60) + "...") : item.label,
|
||||||
titleFn: (item) => item['label'],
|
titleFn: (item: Prefilling) => item.label,
|
||||||
subtitleFn: (item) => item['id'],
|
subtitleFn: (item: Prefilling) => item.id,
|
||||||
valueAssign: (item) => item,
|
valueAssign: (item: Prefilling) => item,
|
||||||
|
uniqueAssign: (item: Prefilling) => item.id,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue