Skip to content

Commit

Permalink
Fixed bug when redisplaying the "History" tab
Browse files Browse the repository at this point in the history
  • Loading branch information
yazz committed Nov 17, 2023
1 parent 134a93c commit 0426141
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,13 @@ load_once_from_file(true)
switchTab: async function ( { tabName } ) {
let mm = this
mm.selectedTab = tabName
if (tabName == "history") {
await mm.setupTimeline()
setTimeout(async function(){
await mm.calculateBranchStrength()
await mm.getCommitHistoryForThisComponent()
})
}
},
// editor interface
getText: async function ( ) {
Expand Down Expand Up @@ -298,13 +305,9 @@ load_once_from_file(true)
let mm = this
this.text = textValue
this.baseComponentId = yz.helpers.getValueOfCodeString(this.text, "base_component_id")
this.codeId = await this.getCurrentCommitId()
this.codeId = await this.getCurrentCommitId()

await this.setupTimeline()
setTimeout(async function(){
await mm.calculateBranchStrength()
await mm.getCommitHistoryForThisComponent()
})
await mm.switchTab( {tabName: mm.selectedTab} )
},

// setup functions
Expand Down

0 comments on commit 0426141

Please sign in to comment.