Skip to content

Commit

Permalink
dispatch :workspace-faculty-request on :workspace-switch
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Jun 9, 2016
1 parent c56c8a2 commit 365133f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/cljs/ulysses/config.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
(def api-hostname
(if (or debug? (string/includes? hostname "staging"))
"http://ulysses-api-staging.core"
; "http://localhost:8000"
"http://ulysses-api-alpha.core"))

(def api-endpoint (str api-hostname "/api"))
Expand Down
1 change: 1 addition & 0 deletions src/cljs/ulysses/handlers.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@
(register-handler
:workspace-switch
(fn [db [_ workspace-id-maybe]]
(dispatch [:workspace-faculty-request])
(if workspace-id-maybe
(if-let [target (find-by-id workspace-id-maybe (:workspaces db))]
(assoc db :builder-workspace target)
Expand Down

0 comments on commit 365133f

Please sign in to comment.