mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-12-30 20:06:30 +01:00
Update frontend/src/core/components/shared/AppConfigModal.tsx
Co-authored-by: James Brunton <jbrunton96@gmail.com>
This commit is contained in:
parent
09711670ad
commit
1c27687099
@ -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;
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user