diff --git a/public/app/features/dashboard/containers/DashboardPage.tsx b/public/app/features/dashboard/containers/DashboardPage.tsx index 9e255becd5f..bdb77e9aa8d 100644 --- a/public/app/features/dashboard/containers/DashboardPage.tsx +++ b/public/app/features/dashboard/containers/DashboardPage.tsx @@ -19,6 +19,7 @@ import { selectors } from '@grafana/e2e-selectors'; import { config, locationService } from '@grafana/runtime'; import { Icon, Themeable2, withTheme2 } from '@grafana/ui'; import { notifyApp } from 'app/core/actions'; +import ErrorPage from 'app/core/components/ErrorPage/ErrorPage'; import { Page } from 'app/core/components/Page/Page'; import { GrafanaContext, GrafanaContextType } from 'app/core/context/GrafanaContext'; import { createErrorNotification } from 'app/core/copy/appNotification'; @@ -440,47 +441,53 @@ export class UnthemedDashboardPage extends PureComponent { > {initError && } - {showSubMenu && ( -
- -
- )} - {config.featureToggles.editPanelCSVDragAndDrop ? ( - - {({ getRootProps, isDragActive }) => { - const styles = getStyles(this.props.theme, isDragActive); - return ( -
-
-
- -

Create tables from spreadsheets

-
-
- -
- ); - }} -
+ {dashboard.meta.dashboardNotFound ? ( + ) : ( - + <> + {showSubMenu && ( +
+ +
+ )} + {config.featureToggles.editPanelCSVDragAndDrop ? ( + + {({ getRootProps, isDragActive }) => { + const styles = getStyles(this.props.theme, isDragActive); + return ( +
+
+
+ +

Create tables from spreadsheets

+
+
+ +
+ ); + }} +
+ ) : ( + + )} + {inspectPanel && } + )} - {inspectPanel && } {editPanel && (