mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
core: fix notes search results having mismatched references (#7930)
* ids and items had different orders Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
@@ -295,7 +295,7 @@ export default class Lookup {
|
||||
async (start, end) => {
|
||||
const items = await selector.items(ids.slice(start, end), sortOptions);
|
||||
return {
|
||||
ids: ids.slice(start, end),
|
||||
ids: items.map((i) => i.id),
|
||||
items
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user