chore: Rename isDataPanel to noQueries

This commit is contained in:
Johannes Schill
2019-02-12 09:48:46 +01:00
parent b7b1a79405
commit 075fb8e91c
8 changed files with 10 additions and 11 deletions

View File

@@ -131,8 +131,11 @@ export class PanelChrome extends PureComponent<Props, State> {
this.renderPanelPlugin(LoadingState.Done, snapshotDataToPanelData(panel), width, height)
) : (
<>
{plugin.isDataPanel === true ?
<DataPanel
{plugin.noQueries === true ?
this.renderPanelPlugin(LoadingState.Done, null, width, height)
: (
<DataPanel
panelId={panel.id}
datasource={datasource}
queries={targets}
@@ -146,8 +149,6 @@ export class PanelChrome extends PureComponent<Props, State> {
return this.renderPanelPlugin(loading, panelData, width, height);
}}
</DataPanel>
: (
this.renderPanelPlugin(LoadingState.Done, null, width, height)
)}
</>
)}