Update frontend/src/core/components/shared/AppConfigModal.tsx

Co-authored-by: James Brunton <jbrunton96@gmail.com>
This commit is contained in:
Anthony Stirling 2025-11-06 14:53:26 +00:00 committed by GitHub
parent 09711670ad
commit 1c27687099
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,7 +26,7 @@ const AppConfigModal: React.FC<AppConfigModalProps> = ({ opened, onClose }) => {
const match = pathname.match(/\/settings\/([^/]+)/);
if (match && match[1]) {
const section = match[1] as NavKey;
return VALID_NAV_KEYS.includes(section as any) ? section : null;
return VALID_NAV_KEYS.includes(section as NavKey) ? section : null;
}
return null;
};