diff --git a/platform/app/src/routes/index.tsx b/platform/app/src/routes/index.tsx index 138642a4d..f06ad8c8b 100644 --- a/platform/app/src/routes/index.tsx +++ b/platform/app/src/routes/index.tsx @@ -12,6 +12,7 @@ import buildModeRoutes from './buildModeRoutes'; import PrivateRoute from './PrivateRoute'; import PropTypes from 'prop-types'; import { routerBase, routerBasename } from '../utils/publicUrl'; +import { useAppConfig } from '@state'; const NotFoundServer = ({ message = 'Unable to query for studies at this time. Check your data source configuration or network connection', @@ -30,19 +31,20 @@ NotFoundServer.propTypes = { }; const NotFoundStudy = () => { + const [appConfig] = useAppConfig(); + const { showStudyList } = appConfig; + return (

- One or more of the requested studies are not available at this time. Return to the{' '} - - study list - {' '} - to select a different study to view. + One or more of the requested studies are not available at this time.

+ {showStudyList && ( +

+ Return to the study list to select a different study to view. +

+ )}
);