From 780e66632b889690ef30ba083c70b5ab8a5cf4aa Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Thu, 9 Mar 2017 11:23:24 -0800 Subject: [PATCH] fix react embedly (#1089) --- frontend/src/components/TopicCard/Attachments.js | 6 +++++- frontend/src/components/TopicCard/EmbedlyLink/index.js | 5 +++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/TopicCard/Attachments.js b/frontend/src/components/TopicCard/Attachments.js index 3e04dfbc..6f26aed2 100644 --- a/frontend/src/components/TopicCard/Attachments.js +++ b/frontend/src/components/TopicCard/Attachments.js @@ -9,7 +9,11 @@ class Attachments extends Component { return (
- +
) } diff --git a/frontend/src/components/TopicCard/EmbedlyLink/index.js b/frontend/src/components/TopicCard/EmbedlyLink/index.js index 1775ab03..c2413930 100644 --- a/frontend/src/components/TopicCard/EmbedlyLink/index.js +++ b/frontend/src/components/TopicCard/EmbedlyLink/index.js @@ -34,7 +34,7 @@ class EmbedlyLink extends Component { } render = () => { - const { link, authorizedToEdit } = this.props + const { link, authorizedToEdit, topicId } = this.props const { linkEdit } = this.state const hasAttachment = !!link @@ -55,7 +55,7 @@ class EmbedlyLink extends Component { {linkEdit &&
} - {link && } + {link && } {authorizedToEdit && (