Skip to content

Commit

Permalink
patch: Correctly resolve passed operations
Browse files Browse the repository at this point in the history
  • Loading branch information
julienvincent committed Apr 5, 2024
1 parent 0a1953d commit 1225dfc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/mallard/src/k16/mallard/api.clj
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,13 @@
context (when-let [create-ctx (some-> create-ctx-fn (requiring-resolve))]
(create-ctx))
store (create-store! context)
operations (when operations
(var-get (requiring-resolve operations)))
props {:context context
:operations (or operations
(loaders.fs/load! load-dir))
(when load-dir
(loaders.fs/load! load-dir))
[])
:store store}]

(case action
Expand Down

0 comments on commit 1225dfc

Please sign in to comment.