From b103cc09f242b98c4d398ebde68362e8abca6a4e Mon Sep 17 00:00:00 2001 From: 01zulfi <85733202+01zulfi@users.noreply.github.com> Date: Tue, 15 Apr 2025 10:37:47 +0500 Subject: [PATCH] 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> --- packages/core/src/api/lookup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/api/lookup.ts b/packages/core/src/api/lookup.ts index fce1a16d7..7fe32d12a 100644 --- a/packages/core/src/api/lookup.ts +++ b/packages/core/src/api/lookup.ts @@ -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 }; }