Skip to content

Commit 122e5c5

Browse files
committed
remove reload on link hover
1 parent 35bc0f7 commit 122e5c5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/TopBar/ProjectToolBar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class ProjectToolBar extends React.Component {
7373
}
7474

7575
onDashboardLeave() {
76-
if (this.state.activePage === 'dashboard') { window.location.reload() }
76+
if (this.state.activePage === 'dashboard') { return }
7777
this.setState({
7878
activeDashboard: 'not-active'
7979
})
@@ -87,7 +87,7 @@ class ProjectToolBar extends React.Component {
8787
}
8888

8989
onSpecificationLeave() {
90-
if (this.state.activePage === 'specification') { window.location.reload() }
90+
if (this.state.activePage === 'specification') { return }
9191
this.setState({
9292
activeSpecification: 'not-active'
9393
})
@@ -101,7 +101,7 @@ class ProjectToolBar extends React.Component {
101101
}
102102

103103
onMessagesLeave() {
104-
if (this.state.activePage === 'discussions') { window.location.reload() }
104+
if (this.state.activePage === 'discussions') { return }
105105
this.setState({
106106
activeMessages: 'not-active'
107107
})

0 commit comments

Comments
 (0)