fix for annotation promise clearing, bug introduced last week when merging react panels step1

This commit is contained in:
Torkel Ödegaard
2018-10-25 11:35:32 +02:00
parent df7915f3b4
commit be6f68f341
3 changed files with 28 additions and 13 deletions

View File

@@ -14,7 +14,7 @@ export class SoloPanelCtrl {
const params = $location.search();
panelId = parseInt(params.panelId, 10);
$scope.onAppEvent('dashboard-initialized', $scope.initPanelScope);
appEvents.on('dashboard-initialized', $scope.initPanelScope);
// if no uid, redirect to new route based on slug
if (!($routeParams.type === 'script' || $routeParams.type === 'snapshot') && !$routeParams.uid) {