Skip to content

Commit

Permalink
conditionally render ArticleViewer permalink issue#2546 (#2641)
Browse files Browse the repository at this point in the history
resolves #2546
  • Loading branch information
hjhimanshu01 authored and ragesoss committed Mar 25, 2019
1 parent 7650a3f commit 90b7858
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/assets/javascripts/components/common/article_viewer.jsx
Expand Up @@ -328,7 +328,9 @@ const ArticleViewer = createReactClass({
<div className="article-header">
<p>
<span className="article-viewer-title">{trunc(this.props.article.title, 56)}</span>
<span><a className="icon-link" href={`?showArticle=${this.props.article.id}`} /></span>
{this.props.article.id && (
<span><a className="icon-link" href={`?showArticle=${this.props.article.id}`} /></span>
) }
{closeButton}
<a className="button small pull-right article-viewer-button" href={`/feedback?subject=Article Viewer — ${this.props.article.title}`} target="_blank">How did the article viewer work for you?</a>
</p>
Expand Down

0 comments on commit 90b7858

Please sign in to comment.