Fix index lookup for minimal and maximal favorite id

This commit is contained in:
arne 2025-11-20 23:21:38 +01:00
commit 7d359c2ed7
2 changed files with 4 additions and 15 deletions

View file

@ -114,7 +114,7 @@
([db store-id key-range {:keys [direction index]}]
(let [store (open-store db store-id "readonly")
key-range (if (= key-range ::all)
(js/IDBKeyRange.lowerBound "")
(js/IDBKeyRange.lowerBound js/Number.NEGATIVE_INFINITY)
key-range)
direction ({:asc "next" :desc "prev"} direction direction)]
(if index