From 76b083a2bd7e0ab694af3e4fb2504e3869f97113 Mon Sep 17 00:00:00 2001 From: Logan Hunt Date: Fri, 8 Apr 2022 13:04:08 -0600 Subject: [PATCH] Fix when no upload --- .../live/post_live/form_component.html.heex | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/aggiedit_web/live/post_live/form_component.html.heex b/lib/aggiedit_web/live/post_live/form_component.html.heex index 2f0738e..a956cb3 100644 --- a/lib/aggiedit_web/live/post_live/form_component.html.heex +++ b/lib/aggiedit_web/live/post_live/form_component.html.heex @@ -27,11 +27,13 @@ <% end %> <%= else %> -
-
- + <% if !is_nil(@post.upload) do %> +
+
+ +
-
+ <% end %> <% end %>