X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/01c2aabd95ea9f8dcab18d6c7dd2a88fcbd87a68..ed1e5ebe7d1f25e2ac6589c3610e8aae2042e6b0:/app/views/user_blocks/_navigation.html.erb diff --git a/app/views/user_blocks/_navigation.html.erb b/app/views/user_blocks/_navigation.html.erb index f53f5cf28..061989586 100644 --- a/app/views/user_blocks/_navigation.html.erb +++ b/app/views/user_blocks/_navigation.html.erb @@ -34,11 +34,17 @@ :class => ["nav-link", { :active => action_name == "blocks_by" }] %> <% end %> - <% if @user_block %> + <% if @user_block&.persisted? %> + <% elsif @user_block&.new_record? %> + <% end %>