{"action":"created","issue":{"url":"https://api.github.com/repos/NodeBB/NodeBB/issues/3681","labels_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/3681/labels{/name}","comments_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/3681/comments","events_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/3681/events","html_url":"https://github.com/NodeBB/NodeBB/issues/3681","id":108557498,"number":3681,"title":"categories [bgColor] problem after upgrade","user":{"login":"ogerly","id":1324583,"avatar_url":"https://avatars.githubusercontent.com/u/1324583?v=3","gravatar_id":"","url":"https://api.github.com/users/ogerly","html_url":"https://github.com/ogerly","followers_url":"https://api.github.com/users/ogerly/followers","following_url":"https://api.github.com/users/ogerly/following{/other_user}","gists_url":"https://api.github.com/users/ogerly/gists{/gist_id}","starred_url":"https://api.github.com/users/ogerly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogerly/subscriptions","organizations_url":"https://api.github.com/users/ogerly/orgs","repos_url":"https://api.github.com/users/ogerly/repos","events_url":"https://api.github.com/users/ogerly/events{/privacy}","received_events_url":"https://api.github.com/users/ogerly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-27T20:02:48Z","updated_at":"2015-09-27T21:48:45Z","closed_at":null,"body":"I made an upgrade from 0.7.3 to 0.8.2.\r\nthat was all ok.\r\n\r\nthe new start of NodeBB everything was ok.\r\n\r\nbut when I saw the website aufrufte came a 503 error.\r\n\r\nand press F5 when re .. following error occurs in the console.\r\n\r\na categorie has no color.\r\n\r\nbut I have all entries in the database does not check categorie found where the bgColor missing.\r\n\r\nhttps://i.imgur.com/ARKBReQ.png\r\n\r\nI have in the helpers.js the function which the categorie.bgColor is commented out. thus the page is running again.\r\n\r\nbut it lacks all categorie bgColor.\r\n\r\n\r\n## public/src/modules/helpers.js : ( at line 77)\r\n             if (category.bgColor) {\r\n\t\t\tstyle.push('background-color: ' + category.bgColor);\r\n\t\t} \r\n#### Here's the problem. it is assumed that is always awarded bgColor. The function can not deal with \"null\" and gets off\r\n \r\n\r\n\t\t"},"comment":{"url":"https://api.github.com/repos/NodeBB/NodeBB/issues/comments/143597130","html_url":"https://github.com/NodeBB/NodeBB/issues/3681#issuecomment-143597130","issue_url":"https://api.github.com/repos/NodeBB/NodeBB/issues/3681","id":143597130,"user":{"login":"ogerly","id":1324583,"avatar_url":"https://avatars.githubusercontent.com/u/1324583?v=3","gravatar_id":"","url":"https://api.github.com/users/ogerly","html_url":"https://github.com/ogerly","followers_url":"https://api.github.com/users/ogerly/followers","following_url":"https://api.github.com/users/ogerly/following{/other_user}","gists_url":"https://api.github.com/users/ogerly/gists{/gist_id}","starred_url":"https://api.github.com/users/ogerly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ogerly/subscriptions","organizations_url":"https://api.github.com/users/ogerly/orgs","repos_url":"https://api.github.com/users/ogerly/repos","events_url":"https://api.github.com/users/ogerly/events{/privacy}","received_events_url":"https://api.github.com/users/ogerly/received_events","type":"User","site_admin":false},"created_at":"2015-09-27T21:48:45Z","updated_at":"2015-09-27T21:48:45Z","body":"now"}}