From 1e1114d8c2c40281967d9cd29ab0e83ed9fff5c9 Mon Sep 17 00:00:00 2001 From: tholulomo Date: Sun, 28 Jul 2024 17:53:44 -0400 Subject: [PATCH] feat(#504): Catching all errors in chart editor --- app/src/pages/explorer/chart/editor/Chart.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/src/pages/explorer/chart/editor/Chart.vue b/app/src/pages/explorer/chart/editor/Chart.vue index 4bbcde4a..8f1347b9 100644 --- a/app/src/pages/explorer/chart/editor/Chart.vue +++ b/app/src/pages/explorer/chart/editor/Chart.vue @@ -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