Skip to content

Commit

Permalink
πŸ› Check the presence of an URL before rendering a learn more link (#5045
Browse files Browse the repository at this point in the history
)
  • Loading branch information
robinvanopstal authored Dec 8, 2020
1 parent 5469809 commit 299a1ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions playground/src/error-list/error-list-item.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<div>
<p class="message">
{{ message }}
<a href="{{ specUrl }}" target="_blank" rel="noopener">
Learn&nbsp;more
</a>
{{#if specUrl}}
<a href="{{ specUrl }}" target="_blank" rel="noopener">Learn&nbsp;more</a>
{{/if}}
</p>
<div class="location">Line {{ line }}, Column {{ col }}</div>
</div>
Expand Down

0 comments on commit 299a1ea

Please sign in to comment.