浏览代码

PanelEditor: Fix queries tab now showing, wrong skipDataQuery logic (#16994)

Torkel Ödegaard 6 年之前
父节点
当前提交
675d43c753
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      public/app/features/dashboard/panel_editor/PanelEditor.tsx

+ 1 - 1
public/app/features/dashboard/panel_editor/PanelEditor.tsx

@@ -105,7 +105,7 @@ export class PanelEditor extends PureComponent<PanelEditorProps> {
     ];
 
     // handle panels that do not have queries tab
-    if (!plugin.meta.skipDataQuery) {
+    if (plugin.meta.skipDataQuery) {
       // remove queries tab
       tabs.shift();
       // switch tab