From 5b302843d4b6d94d487fdfe145364d3a9deb40b5 Mon Sep 17 00:00:00 2001 From: Orlando Brea Date: Fri, 23 Oct 2020 11:29:14 -0300 Subject: [PATCH] fix issue #2130 - With config.showStudyList : false -> Still showing hyperlink to StudyList on Not Found Component --- platform/viewer/src/routes/NotFound.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/platform/viewer/src/routes/NotFound.js b/platform/viewer/src/routes/NotFound.js index 41f5e01f1..0e19bf5a5 100644 --- a/platform/viewer/src/routes/NotFound.js +++ b/platform/viewer/src/routes/NotFound.js @@ -1,13 +1,17 @@ import React from 'react'; import './NotFound.css'; import { Link } from 'react-router-dom'; +import { useAppContext } from '../context/AppContext'; export default function NotFound({ message = 'Sorry, this page does not exist.', showGoBackButton = true }) { + + const context = useAppContext(); + return (

{message}

- {showGoBackButton && ( + {showGoBackButton && context.appConfig.showStudyList && (
Go back to the Study List