Skip to content

Commit

Permalink
feat(#504): Catching all errors in chart editor
Browse files Browse the repository at this point in the history
  • Loading branch information
tholulomo committed Jul 28, 2024
1 parent 7b7e56c commit 1e1114d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app/src/pages/explorer/chart/editor/Chart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,12 @@ export default {
this.actionType = 'Restore Chart'
this.reloadRestored()
}
getChartPromise.then((chart) => {
this.chart = chart
return this.getSparqlData()
})
getChartPromise
.then((chart) => {
this.chart = chart
return this.getSparqlData()
})
.catch((this.loading = false))
},
async reloadRestored () {
// 1. Fetch backup from mongo
Expand Down

0 comments on commit 1e1114d

Please sign in to comment.