From c2d399b059306f13f83162c633624752bbeb9512 Mon Sep 17 00:00:00 2001 From: Sean Lafferty Date: Fri, 5 Apr 2019 01:36:32 -0400 Subject: [PATCH] Fix: Query editor toggle edit mode fix (#16394) Increase timeout when waiting for datasource toggleEditorMode check Fixes #16393 --- public/app/features/dashboard/panel_editor/QueryEditorRow.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/dashboard/panel_editor/QueryEditorRow.tsx b/public/app/features/dashboard/panel_editor/QueryEditorRow.tsx index 48a18913043..83e32859cfc 100644 --- a/public/app/features/dashboard/panel_editor/QueryEditorRow.tsx +++ b/public/app/features/dashboard/panel_editor/QueryEditorRow.tsx @@ -161,7 +161,7 @@ export class QueryEditorRow extends PureComponent { // give angular time to compile setTimeout(() => { this.setState({ hasTextEditMode: !!this.angularScope.toggleEditorMode }); - }, 10); + }, 100); } onToggleCollapse = () => {