From 7046bb5139d88015267fb33986dfa8c3f7200a5d Mon Sep 17 00:00:00 2001 From: Alirie Gray Date: Thu, 6 Sep 2018 13:58:36 -0700 Subject: [PATCH] Use source from query instead of queryConfig when saving in ceo --- ui/src/dashboards/components/CellEditorOverlay.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ui/src/dashboards/components/CellEditorOverlay.tsx b/ui/src/dashboards/components/CellEditorOverlay.tsx index fb66710f1..b03edd70c 100644 --- a/ui/src/dashboards/components/CellEditorOverlay.tsx +++ b/ui/src/dashboards/components/CellEditorOverlay.tsx @@ -275,11 +275,8 @@ class CellEditorOverlay extends Component { null ) const timeRange = getTimeRange(queryConfig) - const source = getDeep( - queryConfig, - 'source.links.self', - null - ) + const source = getDeep(q, 'source', null) + return { ...q, query: