From d8a2c52c643eea5c8e37c8566526139c829500ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Na=C3=AFm=20Favier?= Date: Sun, 11 Jun 2023 13:06:27 +0200 Subject: [PATCH] frontend: fixup for empty queries --- frontend/src/Main.elm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/Main.elm b/frontend/src/Main.elm index 32a5d7d..7b74999 100644 --- a/frontend/src/Main.elm +++ b/frontend/src/Main.elm @@ -349,7 +349,11 @@ view model = "" Just q -> - " - " ++ q + if String.isEmpty q then + "" + + else + " - " ++ q maybeFlakeQuery m = case m of