fix(app): display study not found message for all modes (#5752)

* fix(app): move study validation to ModeRoute component

- Moved validation from defaultRouteInit.ts to Mode.tsx
- Added dedicated useEffect hook for study validation

* test: add Playwright test for study not found error page across multiple modes
This commit is contained in:
Ghadeer Albattarni authored and GitHub committed 2026-02-09 21:51:44 -05:00
1 parent 3c0dd39054
commit 7f9e59ee30
7 files changed
+159 -8

No files matched your search

@@ -122,11 +122,6 @@ function PanelStudyBrowser({
studyInstanceUid: StudyInstanceUID,
});
if (!qidoForStudyUID?.length) {
navigate('/notfoundstudy', '_self');
throw new Error('Invalid study URL');
}
let qidoStudiesForPatient = qidoForStudyUID;
// try to fetch the prior studies based on the patientID if the