Skip to content

Commit 0a3ce97

Browse files
committed
fix: schema update
1 parent 2df1f14 commit 0a3ce97

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/datascript/db.cljc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1301,10 +1301,11 @@
13011301

13021302
(defn- get-e-schema
13031303
[schema e db-ident]
1304-
(let [result (schema e)]
1305-
(if (keyword? result)
1306-
(schema db-ident)
1307-
result)))
1304+
(let [result (schema e)
1305+
s (schema db-ident)]
1306+
(if (map? result)
1307+
(merge result s)
1308+
s)))
13081309

13091310
(defn update-schema [db ^Datom datom]
13101311
(let [schema (get-schema db)

0 commit comments

Comments
 (0)