Fixed settings warning message (#3046)

* Fixed warning message

* increased npm version

Co-authored-by: Boris Sekachev <boris.sekachev@intel.com>
main
Dmitry Kalinin 5 years ago committed by GitHub
parent 602e8149e2
commit 57844134e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,6 @@
{
"name": "cvat-ui",
"version": "1.18.0",
"version": "1.18.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

@ -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": {

@ -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;

Loading…
Cancel
Save