Skip to content

Commit

Permalink
Merge pull request #6 from kepler16/jv/change-nvkzusmyqspn
Browse files Browse the repository at this point in the history
Correctly resolve passed operations
  • Loading branch information
julienvincent authored Apr 5, 2024
2 parents 0a1953d + 1225dfc commit e55e2be
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 e55e2be

Please sign in to comment.