chore: fixes merge conflict

This commit is contained in:
Jacob Overgaard
2025-11-17 16:59:25 +01:00
parent 45c8be4bb7
commit bf35477399

View File

@@ -18,8 +18,9 @@ export class UmbStaticFilePickerInputContext extends UmbPickerInputContext<
super(host, UMB_STATIC_FILE_ITEM_REPOSITORY_ALIAS, UMB_STATIC_FILE_PICKER_MODAL);
}
protected override getItemDisplayName(item: UmbStaticFileItemModel | undefined, unique: string): string {
protected override async _requestItemName(unique: string): Promise<string> {
// If item doesn't exist, use the file path as the name
const item = this.getSelectedItemByUnique(unique);
return item?.name ?? this.#serializer.toServerPath(unique) ?? unique;
}
}