mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-29 00:20:04 +01:00
web: fix type in SearchViewModel
This commit is contained in:
committed by
Abdullah Atta
parent
8c17233e67
commit
605e045ff7
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user