Skip to content
This repository was archived by the owner on Oct 12, 2021. It is now read-only.

Commit 92686d3

Browse files
author
Max Klyga
committed
Merge branch 'master' of github.com:GetStream/Winds
2 parents 6545434 + 6aad7dc commit 92686d3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

app/src/components/RSSArticleList.js

+6-4
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,12 @@ class RSSArticleList extends React.Component {
8787
);
8888

8989
this.unsubscribeFromStreamFeed();
90-
this.subscribeToStreamFeed(
91-
nextProps.rssFeed._id,
92-
nextProps.rssFeed.streamToken,
93-
);
90+
if (nextProps.rssFeed) {
91+
this.subscribeToStreamFeed(
92+
nextProps.rssFeed._id,
93+
nextProps.rssFeed.streamToken,
94+
);
95+
}
9496
}
9597

9698
if (!this.props.rssFeed && nextProps.rssFeed) {

0 commit comments

Comments
 (0)