diff --git a/cvat-ui/package-lock.json b/cvat-ui/package-lock.json index 76872ec7..c23090f3 100644 --- a/cvat-ui/package-lock.json +++ b/cvat-ui/package-lock.json @@ -1,6 +1,6 @@ { "name": "cvat-ui", - "version": "1.18.0", + "version": "1.18.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/cvat-ui/package.json b/cvat-ui/package.json index d885b612..d6bbde46 100644 --- a/cvat-ui/package.json +++ b/cvat-ui/package.json @@ -1,6 +1,6 @@ { "name": "cvat-ui", - "version": "1.18.0", + "version": "1.18.1", "description": "CVAT single-page application", "main": "src/index.tsx", "scripts": { diff --git a/cvat-ui/src/components/header/settings-modal/settings-modal.tsx b/cvat-ui/src/components/header/settings-modal/settings-modal.tsx index 0965873b..23143f9e 100644 --- a/cvat-ui/src/components/header/settings-modal/settings-modal.tsx +++ b/cvat-ui/src/components/header/settings-modal/settings-modal.tsx @@ -45,7 +45,9 @@ const SettingsModal = (props: SettingsModalProps): JSX.Element => { useEffect(() => { try { const newSettings: any = {}; - const loadedSettings = JSON.parse(localStorage.getItem('clientSettings') as string); + const settingsString = localStorage.getItem('clientSettings') as string; + if (!settingsString) return; + const loadedSettings = JSON.parse(settingsString); for (const [sectionKey, section] of Object.entries(settings)) { for (const [key, value] of Object.entries(section)) { let settedValue = value;