mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
core: return items in same order when using .records
This commit is contained in:
@@ -342,6 +342,8 @@ export class FilteredSelector<T extends Item> {
|
||||
for (const item of results) {
|
||||
items[item.id] = item as T;
|
||||
}
|
||||
|
||||
if (ids) return Object.fromEntries(ids.map((id) => [id, items[id]]));
|
||||
return items;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user