chore: PR feedback, shorten boolean check

This commit is contained in:
Johannes Schill 2019-02-12 09:55:09 +01:00
parent 2db9cb3d93
commit be58e275a5
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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