Skip to content

Commit

Permalink
We're seeing errors from JS hitting this line
Browse files Browse the repository at this point in the history
For some reason not all the content here has an error object. No idea
why that would be true, but it's easy to protect against.
  • Loading branch information
jrjohnson committed Mar 21, 2024
1 parent f9b18d5 commit f7cbeb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frontend/app/controllers/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default class ErrorController extends Controller {
}

get isA404() {
if (this.model?.errors.length > 0) {
if (this.model?.errors?.length > 0) {
return Number(this.model.errors[0].status) === 404;
}

Expand Down

0 comments on commit f7cbeb7

Please sign in to comment.