about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-08-03T13·19-0400
committerglittershark <grfn@gws.fyi>2020-08-03T13·25+0000
commit708e94532d8b483a29ec46ae3f822b96fca9a796 (patch)
treeb3521bf1248fdee6c974d44201d25faaa409a888
parentc9a645b69de1d85a43adf7a918d8bbe488a261e0 (diff)
fix(web/panettone): Fix new issue form r/1563
Passing a nil issue to this was breaking because you can't get the id of
nil. I am too used to clojure.

Change-Id: Icf76cbb23d902ec59fa97c21b134936fa40eb43e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1593
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
-rw-r--r--web/panettone/src/panettone.lisp3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/panettone/src/panettone.lisp b/web/panettone/src/panettone.lisp
index d70110ef54df..5473b2717987 100644
--- a/web/panettone/src/panettone.lisp
+++ b/web/panettone/src/panettone.lisp
@@ -228,7 +228,8 @@
     (:header
      (:h1
       (who:esc
-       (if (id issue) "Edit Issue" "New Issue"))))
+       (if (and issue (id issue))
+           "Edit Issue" "New Issue"))))
     (:main
      (render/alert message)
      (:form :method "post"