mirror of
https://github.com/wassname/talk.git
synced 2026-07-01 17:29:06 +08:00
only refetch the comments if you're an admin
This commit is contained in:
@@ -41,9 +41,10 @@ class Embed extends Component {
|
||||
state = {activeTab: 0, showSignInDialog: false, activeReplyBox: ''};
|
||||
|
||||
changeTab = (tab) => {
|
||||
const {isAdmin} = this.props.auth;
|
||||
|
||||
// Everytime the comes from another tab, the Stream needs to be updated.
|
||||
if (tab === 0) {
|
||||
if (tab === 0 && isAdmin) {
|
||||
this.props.data.refetch();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user