Fix OEmbeds when switching channel, vine/soundcloud heights, and youtube embeds

Этот коммит содержится в:
JoramWilander
2015-12-09 12:24:34 -05:00
родитель 7f1b0cbd1f
Коммит 699230bb3f
4 изменённых файлов: 15 добавлений и 8 удалений

Просмотреть файл

@@ -14,7 +14,14 @@ export default class PostAttachmentOEmbed extends React.Component {
}
componentWillReceiveProps(nextProps) {
this.fetchData(nextProps.link);
if (nextProps.link !== this.props.link) {
this.isLoading = false;
this.fetchData(nextProps.link);
}
}
componentDidMount() {
this.fetchData(this.props.link);
}
fetchData(link) {