Skip to content

Commit

Permalink
Not fetching source summary by default
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Oct 28, 2021
1 parent 12f9b4e commit 1bd32ec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/sources/SourceHome.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ class SourceHome extends React.Component {

fetchVersionsSummary() {
forEach(this.state.versions, version => {
if(version.id === 'HEAD')
this.setHEADSummary()
if(version.id === 'HEAD') {
this.fetchSummary()
}
else
APIService.new().overrideURL(version.version_url).appendToUrl('summary/').get().then(response => {
const newState = {...this.state}
Expand Down Expand Up @@ -172,7 +173,6 @@ class SourceHome extends React.Component {
selectedConfig: defaultCustomConfig || SOURCE_DEFAULT_CONFIG,
customConfigs: customConfigs,
}, () => {
setTimeout(() => this.fetchSummary(), 8000) // Fixme: Summary to load later than the search results -- Sunny
const tab = this.getDefaultTabIndex()
if(tab === 0)
this.setTab()
Expand Down

0 comments on commit 1bd32ec

Please sign in to comment.