🐛 Fix pointermap issue on file export

This commit is contained in:
Andrey Antukh 2023-05-09 12:47:33 +02:00
parent 8e0abec876
commit 63f4ef97fb
2 changed files with 4 additions and 2 deletions

View file

@ -74,13 +74,15 @@
IPointerMap
(load! [_]
(l/trace :hint "pointer-map:load" :id id)
(set! loaded? true)
(when-not *load-fn*
(throw (UnsupportedOperationException. "load is not supported when *load-fn* is not bind")))
(when-let [data (*load-fn* id)]
(set! odata data))
(set! loaded? true)
(or odata {}))
(modified? [_] modified?)