{"action":"created","issue":{"url":"https://api.github.com/repos/MichMich/MagicMirror/issues/1240","repository_url":"https://api.github.com/repos/MichMich/MagicMirror","labels_url":"https://api.github.com/repos/MichMich/MagicMirror/issues/1240/labels{/name}","comments_url":"https://api.github.com/repos/MichMich/MagicMirror/issues/1240/comments","events_url":"https://api.github.com/repos/MichMich/MagicMirror/issues/1240/events","html_url":"https://github.com/MichMich/MagicMirror/issues/1240","id":310251886,"number":1240,"title":"Uncaught TypeError: Cannot read property dismiss of null (alert.js)","user":{"login":"E3V3A","id":194392,"avatar_url":"https://avatars1.githubusercontent.com/u/194392?v=4","gravatar_id":"","url":"https://api.github.com/users/E3V3A","html_url":"https://github.com/E3V3A","followers_url":"https://api.github.com/users/E3V3A/followers","following_url":"https://api.github.com/users/E3V3A/following{/other_user}","gists_url":"https://api.github.com/users/E3V3A/gists{/gist_id}","starred_url":"https://api.github.com/users/E3V3A/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/E3V3A/subscriptions","organizations_url":"https://api.github.com/users/E3V3A/orgs","repos_url":"https://api.github.com/users/E3V3A/repos","events_url":"https://api.github.com/users/E3V3A/events{/privacy}","received_events_url":"https://api.github.com/users/E3V3A/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-03-31T16:11:21Z","updated_at":"2018-04-02T11:05:00Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I keep getting random events where the error is:  \r\n\r\n**`Uncaught TypeError: Cannot read property 'dismiss' of null`**\r\n\r\n![alert_bug](https://user-images.githubusercontent.com/194392/38165067-86e014cc-3516-11e8-8f97-298aef451afe.png)\r\n\r\n\r\nThe error is coming from the Alert default module on Line 113, in [alert.js](https://github.com/MichMich/MagicMirror/blob/develop/modules/default/alert/alert.js#L113):\r\n\r\n```js\r\n\thide_alert: function(sender) {\r\n\t\t//Dismiss alert and remove from this.alerts\r\n\t\tthis.alerts[sender.name].dismiss();  // <<========= LINE  113 !\r\n\t\tthis.alerts[sender.name] = null;\r\n\t\t//Remove overlay\r\n\t\tvar overlay = document.getElementById(\"overlay\");\r\n\t\toverlay.parentNode.removeChild(overlay);\r\n},\r\n```\r\n\r\n@MichMich  \r\nDoes this have to be `null` or can it also be set to `\"\"` or something else?\r\nAny ideas how to fix or work around this?\r\n\r\nI'm surprised nobody else has reported this issue, so I want to eliminate that it is a problem with my module. \r\n"},"comment":{"url":"https://api.github.com/repos/MichMich/MagicMirror/issues/comments/377907925","html_url":"https://github.com/MichMich/MagicMirror/issues/1240#issuecomment-377907925","issue_url":"https://api.github.com/repos/MichMich/MagicMirror/issues/1240","id":377907925,"user":{"login":"paviro","id":992826,"avatar_url":"https://avatars3.githubusercontent.com/u/992826?v=4","gravatar_id":"","url":"https://api.github.com/users/paviro","html_url":"https://github.com/paviro","followers_url":"https://api.github.com/users/paviro/followers","following_url":"https://api.github.com/users/paviro/following{/other_user}","gists_url":"https://api.github.com/users/paviro/gists{/gist_id}","starred_url":"https://api.github.com/users/paviro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paviro/subscriptions","organizations_url":"https://api.github.com/users/paviro/orgs","repos_url":"https://api.github.com/users/paviro/repos","events_url":"https://api.github.com/users/paviro/events{/privacy}","received_events_url":"https://api.github.com/users/paviro/received_events","type":"User","site_admin":false},"created_at":"2018-04-02T11:05:00Z","updated_at":"2018-04-02T11:05:00Z","author_association":"CONTRIBUTOR","body":"Oh man :D that was ages ago. I will have a look later today :)"}}
{"actor":{"display_login":"paviro"}}