mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
chore: PR feedback, shorten boolean check
This commit is contained in:
parent
2db9cb3d93
commit
be58e275a5
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user