web: fix type in SearchViewModel

This commit is contained in:
Abdullah Atta
2023-06-17 11:15:39 +05:00
committed by Abdullah Atta
parent 8c17233e67
commit 605e045ff7

View File

@@ -30,7 +30,7 @@ export class SearchViewModel extends BaseViewModel {
async findItem(item: Item) {
const titleToCompare = item.title;
for await (const _item of this.iterateItems()) {
const itemModel = new ItemModel(_item);
const itemModel = new ItemModel(_item, "tag");
const title = await itemModel.getTitle();
if (title === titleToCompare) return itemModel;
}