We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b7d1eb commit 4eabbb8Copy full SHA for 4eabbb8
src/datascript/db.cljc
@@ -1149,7 +1149,7 @@
1149
cmp #?(:clj (.comparator ^clojure.lang.Sorted set) :cljs (.-comparator set))
1150
from (components->pattern db index c0 c1 c2 c3 e0 tx0)
1151
to (components->pattern db index c0 c1 c2 c3 emax txmax)
1152
- datom (first (set/seek (seq set) from))]
+ datom (when-let [set* (seq set)] (first (set/seek set* from)))]
1153
(when (and (some? datom) (<= 0 (cmp to datom)))
1154
datom)))
1155
0 commit comments