Commit b5dbf26d by Johannes Schill

chore: PR feedback, shorten boolean check

parent 075fb8e9
......@@ -131,8 +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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment