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 600ee7d commit 5d97bccCopy full SHA for 5d97bcc
packages/devtools-kit/src/core/timeline/storage.ts
@@ -20,7 +20,7 @@ export function getTimelineLayersStateFromStorage() {
20
selected: '',
21
}
22
23
- const state = localStorage.getItem(TIMELINE_LAYERS_STATE_STORAGE_ID)
+ const state = typeof localStorage.getItem !== 'undefined' ? localStorage.getItem(TIMELINE_LAYERS_STATE_STORAGE_ID) : null
24
return state
25
? JSON.parse(state)
26
: {
0 commit comments