Skip to content

Commit

Permalink
handle multiple spec urls
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc committed Oct 31, 2023
1 parent 69f0360 commit 8bd295c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderer/attribute/views.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@
"Learn more"])
(when (:spec_url data)
[:button.button.px-3.grow
{:on-click #(rf/dispatch [:window/open-remote-url (:spec_url data)])}
{:on-click #(rf/dispatch [:window/open-remote-url (if (vector? (:spec_url data))
(first (:spec_url data))
(:spec_url data))])}
"Specification"])]])))

(defn on-change-handler
Expand Down

0 comments on commit 8bd295c

Please sign in to comment.