diff --git a/common/src/app/common/types/tokens_lib.cljc b/common/src/app/common/types/tokens_lib.cljc index 70e36bfc2f..90fd5a52ec 100644 --- a/common/src/app/common/types/tokens_lib.cljc +++ b/common/src/app/common/types/tokens_lib.cljc @@ -1410,8 +1410,8 @@ Will return a value that matches this schema: ;; NOTE: we can't assign statically at eval time the value of a ;; function that is declared but not defined; so we need to pass ;; an anonymous function and delegate the resolution to runtime - {:encode/json #(export-dtcg-json %) - :decode/json #(read-multi-set-dtcg %) + {:encode/json #(some-> % export-dtcg-json) + :decode/json #(some-> % read-multi-set-dtcg) ;; FIXME: add better, more reallistic generator :gen/gen (->> (sg/small-int) (sg/fmap (fn [_]