Merge pull request #5809 from blockscout/np-fix-404-metadata

Add check for nil metadata to avoid empty tab
pull/5867/head
Victor Baranov 2 years ago committed by GitHub
commit ddd6d21795
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 2
      apps/block_scout_web/lib/block_scout_web/templates/tokens/instance/overview/_tabs.html.eex

@ -3,6 +3,7 @@
### Features
### Fixes
- [#5809](https://github.com/blockscout/blockscout/pull/5809) - Fix 404 on `/metadata` page
- [#5786](https://github.com/blockscout/blockscout/pull/5786) - Replace `current_path` with `Controller.current_full_path` in two controllers
- [#5807](https://github.com/blockscout/blockscout/pull/5807) - Update Makefile migrate command due to release build

@ -5,7 +5,7 @@
to: token_instance_path(@conn, :show, @token.contract_address_hash, to_string(@token_instance.token_id))
)
%>
<%= if @token_instance.instance do %>
<%= if @token_instance.instance && @token_instance.instance.metadata do %>
<%= link(
gettext("Metadata"),
to: token_instance_metadata_path(@conn, :index, Address.checksum(@token.contract_address_hash), to_string(@token_instance.token_id)),

Loading…
Cancel
Save