mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
core: fix group header for search results hidden
This commit is contained in:
2
apps/web/package-lock.json
generated
2
apps/web/package-lock.json
generated
@@ -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": {
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
])
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user