From ddc60cde9192874a6a266f72983494e82a8782aa Mon Sep 17 00:00:00 2001 From: Hariharan Srinath Date: Tue, 7 Feb 2017 17:40:07 +0530 Subject: [PATCH] fixed bug which caused first copy to trigger save --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 3eb9edd..6990f92 100644 --- a/src/index.js +++ b/src/index.js @@ -160,10 +160,10 @@ ReactDOM.render( document.getElementById('root') ); -let prevSig = snippetStoreSig(store.getState().snippets) try{ let snippets= loadSnippets(snippetsFilePath) + let prevSig = snippetStoreSig(snippets) store.dispatch(initSnippets(snippets)) store.subscribe(()=>{