mirror of
https://github.com/wassname/talk.git
synced 2026-07-14 11:18:50 +08:00
Removes isAdmin for refetching when changing tabs.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user