We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9cbed5 commit bfde098Copy full SHA for bfde098
src/lib/stores/replenishment_workbook.svelte.ts
@@ -20,7 +20,13 @@ class ReplenishmentWorkBooksStore {
20
}
21
22
const savedStatus = localStorage.getItem(IS_SHOWN_REPLENISHMENT_WORKBOOKS);
23
- return savedStatus ? JSON.parse(savedStatus) : false;
+
24
+ try {
25
+ return savedStatus ? JSON.parse(savedStatus) : false;
26
+ } catch (error) {
27
+ console.warn('Failed to parse replenishment workbooks visibility state:', error);
28
+ return false;
29
+ }
30
31
32
canView() {
0 commit comments