فهرست منبع

chore: PR feedback, shorten boolean check

Johannes Schill 6 سال پیش
والد
کامیت
be58e275a5

+ 1 - 1
public/app/features/dashboard/dashgrid/PanelChrome.tsx

@@ -131,7 +131,7 @@ export class PanelChrome extends PureComponent<Props, State> {
         this.renderPanelPlugin(LoadingState.Done, snapshotDataToPanelData(panel), width, height)
       ) : (
         <>
-        {plugin.noQueries === true ?
+        {plugin.noQueries ?
             this.renderPanelPlugin(LoadingState.Done, null, width, height)
           : (
             <DataPanel

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

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