disable reset localStorage on error

This commit is contained in:
AykutSarac 2022-02-03 14:36:56 +03:00
parent d8c88c70c3
commit a1ec883bd5

View File

@ -59,7 +59,6 @@ export const parser = (input) => {
return [...flatten(res), ...relationships(res)];
} catch (error) {
console.error("An error occured while parsin JSON data!", error.stack);
localStorage.setItem('json', JSON.stringify(defaultValue));
return Array;
}
};