Skip to content

Commit

Permalink
fixed bug which caused first copy to trigger save
Browse files Browse the repository at this point in the history
  • Loading branch information
srinathh committed Feb 7, 2017
1 parent bb4a62d commit ddc60cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(()=>{
Expand Down

0 comments on commit ddc60cd

Please sign in to comment.