From 5766907b11ae6b51c1d1ea8a126d0ff6f3e1b63d Mon Sep 17 00:00:00 2001 From: sumn2u Date: Tue, 2 Jul 2024 13:23:18 -0500 Subject: [PATCH] fix settings screen is not being rendered after clearing db --- client/src/Annotation/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/Annotation/index.jsx b/client/src/Annotation/index.jsx index cc5d146..83c1b1b 100644 --- a/client/src/Annotation/index.jsx +++ b/client/src/Annotation/index.jsx @@ -150,7 +150,7 @@ export default () => { fetchImages(settings.images); } } - const showLab = settingsConfig.settings.showLab || false; + const showLab = settingsConfig.settings?.showLab || false; if(!isSettingsOpen && showLab) { setShowLabel(showLab) }