Skip to content

Commit d096adb

Browse files
committed
Fix dashboard error when dashboard is deleted
1 parent adee4bb commit d096adb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/dashboards/frontend/public/javascripts/countly.models.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@
7373
}, {disableAutoCatch: true});
7474
},
7575
get: function(dashboardId, isRefresh) {
76+
if (!dashboardId) {
77+
return Promise.resolve(null);
78+
}
7679
return CV.$.ajax({
7780
type: "GET",
7881
url: countlyCommon.API_PARTS.data.r + "/dashboards",

0 commit comments

Comments
 (0)