core: fix group header for search results hidden

This commit is contained in:
Abdullah Atta
2025-06-16 11:16:21 +05:00
parent 1a89678560
commit 0bd8779144
2 changed files with 17 additions and 2 deletions

View File

@@ -502,7 +502,7 @@
},
"../desktop": {
"name": "@notesnook/desktop",
"version": "3.2.0-beta.7",
"version": "3.2.0-beta.9",
"hasInstallScript": true,
"license": "GPL-3.0-or-later",
"dependencies": {

View File

@@ -40,6 +40,7 @@ import { getSortSelectors, groupArray } from "../utils/grouping.js";
import { fuzzy } from "../utils/fuzzy.js";
import { extractMatchingBlocks } from "../utils/html-parser.js";
import { Parser } from "htmlparser2";
import { strings } from "@notesnook/intl";
type SearchResults<T> = {
sorted: (sortOptions?: SortOptions) => Promise<VirtualizedGrouping<T>>;
@@ -303,7 +304,21 @@ export default class Lookup {
ids: results.map((c) => c.id),
items: results
};
}
},
() =>
new Map([
[
0,
{
index: 0,
group: {
id: "0",
title: "",
type: "header"
}
}
]
])
);
}