diff --git a/public/app/features/plugins/plugin_page_ctrl.ts b/public/app/features/plugins/plugin_page_ctrl.ts index d07de832e24..ff4b0fd8860 100644 --- a/public/app/features/plugins/plugin_page_ctrl.ts +++ b/public/app/features/plugins/plugin_page_ctrl.ts @@ -11,10 +11,11 @@ export class AppPageCtrl { navModel: any; /** @ngInject */ - constructor(private $routeParams: any, private $rootScope, private navModelSrv) { + constructor(private $routeParams: any, private $rootScope, private navModelSrv, private $q) { this.pluginId = $routeParams.pluginId; - getPluginSettings(this.pluginId) + this.$q + .when(getPluginSettings(this.pluginId)) .then(settings => { this.initPage(settings); })