Removes isAdmin for refetching when changing tabs.

This commit is contained in:
gaba
2017-04-12 10:41:15 -07:00
parent f4f8e5053f
commit 48795b29bf
+2 -2
View File
@@ -48,10 +48,10 @@ class Embed extends React.Component {
}
changeTab = (tab) => {
const {isAdmin} = this.props.auth;
// Everytime the comes from another tab, the Stream needs to be updated.
if (tab === 0 && isAdmin) {
if (tab === 0) {
this.props.viewAllComments();
this.props.data.refetch();
}