From 1b5ac6082de2998c2b866ccce1f264453a5fa145 Mon Sep 17 00:00:00 2001 From: Maja Grubic Date: Sat, 18 Apr 2020 13:53:54 +0100 Subject: [PATCH] Do not destroy dashboardContainer --- .../dashboard/public/application/dashboard_app_controller.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/dashboard/public/application/dashboard_app_controller.tsx b/src/plugins/dashboard/public/application/dashboard_app_controller.tsx index 30de44a5f04e2..88e87fd7938e7 100644 --- a/src/plugins/dashboard/public/application/dashboard_app_controller.tsx +++ b/src/plugins/dashboard/public/application/dashboard_app_controller.tsx @@ -517,6 +517,7 @@ export class DashboardAppController { // query is the same, and in that case, we have to explicitly ask for // a reload, since no state changes will cause it. lastReloadRequestTime = new Date().getTime(); + refreshDashboardContainer(); } else { $scope.model.query = query; dashboardStateManager.applyFilters($scope.model.query, $scope.model.filters); @@ -978,9 +979,6 @@ export class DashboardAppController { if (outputSubscription) { outputSubscription.unsubscribe(); } - if (dashboardContainer) { - dashboardContainer.destroy(); - } }); } }