From 950453fd70ed2b5fec51cc9b6d34e94538ed15cd Mon Sep 17 00:00:00 2001 From: Dan <12800016+rinslow@users.noreply.github.com> Date: Mon, 12 May 2025 16:35:33 +0300 Subject: [PATCH] fix(NotFoundStudy): Fixed the viewer not-found page when showStudyList: false (#5035) --- platform/app/src/routes/index.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) 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. +

+ )}
);