From 708e94532d8b483a29ec46ae3f822b96fca9a796 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Mon, 3 Aug 2020 09:19:18 -0400 Subject: fix(web/panettone): Fix new issue form 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 --- web/panettone/src/panettone.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/panettone/src/panettone.lisp b/web/panettone/src/panettone.lisp index d70110ef54..5473b27179 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" -- cgit 1.4.1