Skip to content

Commit

Permalink
fix: make context optional (use default)
Browse files Browse the repository at this point in the history
  • Loading branch information
armed committed Jun 8, 2022
1 parent 3274386 commit 95ce925
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/k16/gx/beta/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,9 @@
"Given a graph definition and config, return a normalised form. Idempotent.
This acts as the static analysis step of the graph.
Returns tuple of error explanation (if any) and normamized graph."
[{:keys [context graph] :as gx-map}]
[{:keys [context graph] :or {context default-context} :as gx-map}]
(let [config-issues (gx.schema/validate-context context)
gx-map (assoc gx-map :context context)
;; remove previous normalization errors
gx-map' (cond-> gx-map
(not (:initial-graph gx-map)) (assoc :initial-graph graph)
Expand Down

1 comment on commit 95ce925

@vercel
Copy link

@vercel vercel bot commented on 95ce925 Jun 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

gx – ./

gx.kepler16.com
gx-kepler16.vercel.app
gx-git-master-kepler16.vercel.app

Please sign in to comment.