X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/b213c7f0a83f3b98de6846873f5677bea4e82de9..1a5fb52c280e496eec9ece878a712d5ea56e9fc2:/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 %>