Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Issue #1641 - check if response is defined
  • Loading branch information
zoepage committed Aug 1, 2017
commit 0b49272590ad6e64520f63dfc8d17c5e4c63f21a
6 changes: 5 additions & 1 deletion webcompat/static/js/lib/issues.js
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,11 @@ issues.MainView = Backbone.View.extend({
)
.error(function(response) {
var msg;
if (response.responseJSON.message === "API call. Not Found") {
if (
response &&
response.responseJSON &&
response.responseJSON.message === "API call. Not Found"
) {
location.href = "/404";
return;
} else {
Expand Down