Fix index lookup for minimal and maximal favorite id
This commit is contained in:
parent
7ea11bfeb4
commit
7d359c2ed7
2 changed files with 4 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue