Skip to content

Commit

Permalink
fix: when ex data not present, don't show it
Browse files Browse the repository at this point in the history
  • Loading branch information
Akeboshiwind committed Mar 15, 2024
1 parent e05b185 commit ff10e2e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/xt_fiddle/client.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,11 @@
(->> (str/split message #"(?:\r\n|\r|\n)")
(map #(do [:span %]))
(interpose [:br]))]
[:p {:class "pt-2 font-semibold"}
"Data:"]
[:p (pr-str data)]]])
(when (seq data)
[:<>
[:p {:class "pt-2 font-semibold"}
"Data:"]
[:p (pr-str data)]])]])

(defn table-order [a b]
(cond
Expand Down

0 comments on commit ff10e2e

Please sign in to comment.