diff --git a/ui/src/admin/containers/influxdb/AdminInfluxDBScopedPage.tsx b/ui/src/admin/containers/influxdb/AdminInfluxDBScopedPage.tsx index d50ba3b66..c9e5660e3 100644 --- a/ui/src/admin/containers/influxdb/AdminInfluxDBScopedPage.tsx +++ b/ui/src/admin/containers/influxdb/AdminInfluxDBScopedPage.tsx @@ -139,6 +139,18 @@ export class AdminInfluxDBScopedPage extends PureComponent { } public content() { const {source, children} = this.props + + if (!source.version || source.version.startsWith('2')) { + return ( + +
+ These functions are not available for the currently selected + InfluxDB Connection. +
+
+ ) + } + const {loading, error, errorMessage} = this.state if ( loading === RemoteDataState.Loading || @@ -164,16 +176,6 @@ export class AdminInfluxDBScopedPage extends PureComponent { ) } - if (!source.version || source.version.startsWith('2')) { - return ( - -
- These functions are not available for the currently selected - InfluxDB Connection. -
-
- ) - } return children } }