Skip to content

Commit 9121092

Browse files
author
vikasrohit
authored
Merge pull request #2681 from appirio-tech/hotfix/stop_auto_refresh_of_dashboard
Github issue#2680, Dashboard is auto refreshing in every minute
2 parents ee1f71f + d857373 commit 9121092

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/projects/detail/components/PostsRefreshPrompt/PostsRefreshPrompt.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
filterNotificationsByProjectId,
1717
filterTopicAndPostChangedNotifications,
1818
} from '../../../../routes/notifications/helpers/notifications'
19-
import { REFRESH_UNREAD_UPDATE_INTERVAL, SCROLL_TO_MARGIN } from '../../../../config/constants'
19+
import { SCROLL_TO_MARGIN } from '../../../../config/constants'
2020

2121
import Refresh from '../../../../assets/icons/icon-refresh.svg'
2222

@@ -43,7 +43,7 @@ class PostsRefreshPrompt extends React.Component {
4343

4444
componentWillUnmount() {
4545
window.removeEventListener('scroll', this.onScroll)
46-
clearInterval(this.refreshUnreadUpdate)
46+
// clearInterval(this.refreshUnreadUpdate)
4747
}
4848

4949
componentDidMount() {
@@ -52,7 +52,7 @@ class PostsRefreshPrompt extends React.Component {
5252
scrolled: window.scrollY > 0,
5353
})
5454

55-
this.refreshUnreadUpdate = setInterval(this.checkForUnreadPosts, REFRESH_UNREAD_UPDATE_INTERVAL)
55+
// this.refreshUnreadUpdate = setInterval(this.checkForUnreadPosts, REFRESH_UNREAD_UPDATE_INTERVAL)
5656
}
5757

5858
getUnreadTopicAndPostChangedNotifications() {

0 commit comments

Comments
 (0)