This commit is contained in:
Mads Rasmussen
2023-09-26 10:01:16 +02:00
parent 72b721bd75
commit 71cbcb0ac5
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ export class UmbPickerInputContext<ItemType extends ItemResponseModelBaseModel>
host: UmbControllerHostElement,
repositoryAlias: string,
modalAlias: string | UmbModalToken,
getUniqueMethod?: (entry: ItemType) => string | undefined
getUniqueMethod?: (entry: ItemType) => string | undefined,
) {
this.host = host;
this.modalAlias = modalAlias;

View File

@@ -29,7 +29,7 @@ export class UmbRepositoryItemsManager<ItemType extends ItemResponseModelBaseMod
constructor(
host: UmbControllerHostElement,
repositoryAlias: string,
getUniqueMethod?: (entry: ItemType) => string | undefined
getUniqueMethod?: (entry: ItemType) => string | undefined,
) {
this.host = host;
this.#getUnique = getUniqueMethod || ((entry) => entry.id || '');