From 231f17ab20cce532c1d6384f0eee06fe80114aef Mon Sep 17 00:00:00 2001 From: Ryan McKinley Date: Tue, 2 Nov 2021 00:33:36 -0700 Subject: [PATCH] PanelEditor: remove showCategory on exit (#41174) --- .../features/dashboard/components/PanelEditor/PanelEditor.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/features/dashboard/components/PanelEditor/PanelEditor.tsx b/public/app/features/dashboard/components/PanelEditor/PanelEditor.tsx index 2e25852c090..58a15ac5790 100644 --- a/public/app/features/dashboard/components/PanelEditor/PanelEditor.tsx +++ b/public/app/features/dashboard/components/PanelEditor/PanelEditor.tsx @@ -127,6 +127,7 @@ export class PanelEditorUnconnected extends PureComponent { locationService.partial({ editPanel: null, tab: null, + showCategory: null, }); }; @@ -421,7 +422,7 @@ export class PanelEditorUnconnected extends PureComponent { } onGoBackToDashboard = () => { - locationService.partial({ editPanel: null, tab: null }); + locationService.partial({ editPanel: null, tab: null, showCategory: null }); }; onConfirmAndDismissLibarayPanelModel = () => {