Skip to content

Commit

Permalink
avoid reloading active tab when clicking again on its tabSelector (mi…
Browse files Browse the repository at this point in the history
…ght be linked with #92)
  • Loading branch information
boogheta committed Jul 1, 2019
1 parent 9952d6d commit 974fdcc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/containers/BrowserTabs/BrowserTabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class BrowserTabs extends React.Component {
const title = tab.id === HYPHE_TAB_ID ? formatMessage({ id: 'hyphe-tab-title' }) : tab.title

const selectTab = () => {
if (this.props.activeTabId === tab.id) return;
const networkUrl = instanceUrl + '/#/project/' + corpusId + '/network'
if (tab.id === HYPHE_TAB_ID && tab.url === networkUrl) {
this.reloadTab(tab.id, true)
Expand Down

0 comments on commit 974fdcc

Please sign in to comment.