{"action":"created","issue":{"url":"https://api.github.com/repos/BoostIO/Boostnote/issues/1729","repository_url":"https://api.github.com/repos/BoostIO/Boostnote","labels_url":"https://api.github.com/repos/BoostIO/Boostnote/issues/1729/labels{/name}","comments_url":"https://api.github.com/repos/BoostIO/Boostnote/issues/1729/comments","events_url":"https://api.github.com/repos/BoostIO/Boostnote/issues/1729/events","html_url":"https://github.com/BoostIO/Boostnote/issues/1729","id":307938306,"number":1729,"title":"Storage Location lost after update","user":{"login":"kijowski","id":4027031,"avatar_url":"https://avatars0.githubusercontent.com/u/4027031?v=4","gravatar_id":"","url":"https://api.github.com/users/kijowski","html_url":"https://github.com/kijowski","followers_url":"https://api.github.com/users/kijowski/followers","following_url":"https://api.github.com/users/kijowski/following{/other_user}","gists_url":"https://api.github.com/users/kijowski/gists{/gist_id}","starred_url":"https://api.github.com/users/kijowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kijowski/subscriptions","organizations_url":"https://api.github.com/users/kijowski/orgs","repos_url":"https://api.github.com/users/kijowski/repos","events_url":"https://api.github.com/users/kijowski/events{/privacy}","received_events_url":"https://api.github.com/users/kijowski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-23T08:21:46Z","updated_at":"2018-03-23T09:03:03Z","closed_at":null,"author_association":"NONE","body":"<!--\r\nPlease paste some **screenshots** with the **developer tool** open (console tab) when you report a bug.\r\n\r\nIf your issue is regarding boostnote mobile, move to https://github.com/BoostIO/boostnote-mobile.\r\n-->\r\n\r\nHi, after one of the recent updates (it happened on 0.11.2 and 0.11.3) I've lost the link to a library stored in Dropbox folder. After that I was unable to add this location again - after selecting it in the settings and clicking the `Add` button nothing happened in the UI.\r\n\r\nDuring the app startup and when trying to add the library again this was shown in the dev console:\r\n![boostnote 2018-03-23 08 41 05](https://user-images.githubusercontent.com/4027031/37817260-843c78d8-2e76-11e8-890c-7d0182817149.png)\r\n\r\nIt boils down to `TypeError: Cannot read property 'forEach' of undefined` on that line: \r\nhttps://github.com/BoostIO/Boostnote/blob/1c283f88d03a2c2ee85adf7603bd2203df4ad77f/browser/main/store.js#L56\r\n\r\nI was able to investigate it a bit more and I've found out that it broke because in the notes folder I had a file with following content:\r\n```\r\n'content': ''\r\n\r\n```\r\nIt was named `57910448-d829-430e-b748-bffc42f6f596.cson` if that helps.\r\nAfter removing that file notes loaded correctly.\r\n\r\nI don't know how this file got created, but I suspect it might have happened during app update / initialization. Create date is `2018/03/20 6:40 AM` which is probably the time that I've started the Boostnote app on that day for the first time.\r\n\r\n\r\n<!--\r\nLove Boostnote? Please consider supporting us via OpenCollective:\r\n👉  https://opencollective.com/boostnoteio\r\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/BoostIO/Boostnote/issues/comments/375586412","html_url":"https://github.com/BoostIO/Boostnote/issues/1729#issuecomment-375586412","issue_url":"https://api.github.com/repos/BoostIO/Boostnote/issues/1729","id":375586412,"user":{"login":"Rokt33r","id":5865853,"avatar_url":"https://avatars3.githubusercontent.com/u/5865853?v=4","gravatar_id":"","url":"https://api.github.com/users/Rokt33r","html_url":"https://github.com/Rokt33r","followers_url":"https://api.github.com/users/Rokt33r/followers","following_url":"https://api.github.com/users/Rokt33r/following{/other_user}","gists_url":"https://api.github.com/users/Rokt33r/gists{/gist_id}","starred_url":"https://api.github.com/users/Rokt33r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rokt33r/subscriptions","organizations_url":"https://api.github.com/users/Rokt33r/orgs","repos_url":"https://api.github.com/users/Rokt33r/repos","events_url":"https://api.github.com/users/Rokt33r/events{/privacy}","received_events_url":"https://api.github.com/users/Rokt33r/received_events","type":"User","site_admin":false},"created_at":"2018-03-23T09:03:03Z","updated_at":"2018-03-23T09:03:03Z","author_association":"OWNER","body":"I think we need to handle those error properly. I'll create another issue to do it."}}
{"actor":{"display_login":"Rokt33r"}}