From e035718f858c26b2a84584539d60af062216e75c Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Thu, 7 Jul 2016 00:32:17 -0700 Subject: [PATCH] Small fix to persistent values --- src/scenes/DocumentScene/DocumentScene.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scenes/DocumentScene/DocumentScene.js b/src/scenes/DocumentScene/DocumentScene.js index 04dbcc8d..30a5ae31 100644 --- a/src/scenes/DocumentScene/DocumentScene.js +++ b/src/scenes/DocumentScene/DocumentScene.js @@ -31,7 +31,7 @@ class DocumentScene extends React.Component { constructor(props) { super(props); - this.store = new DocumentSceneStore(JSON.parse(localStorage[DOCUMENT_PREFERENCES])); + this.store = new DocumentSceneStore(JSON.parse(localStorage[DOCUMENT_PREFERENCES] || "{}")); } componentDidMount = () => {