From 48795b29bf600810a7d3cca01fe982c16c877862 Mon Sep 17 00:00:00 2001 From: gaba Date: Wed, 12 Apr 2017 10:40:15 -0700 Subject: [PATCH] Removes isAdmin for refetching when changing tabs. --- client/coral-embed-stream/src/Embed.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/coral-embed-stream/src/Embed.js b/client/coral-embed-stream/src/Embed.js index 453d645c2..342e490ea 100644 --- a/client/coral-embed-stream/src/Embed.js +++ b/client/coral-embed-stream/src/Embed.js @@ -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(); }