mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Merge pull request #6181 from kevinansfield/fix-404-handler
Prevent 404-handler mixin from erroring on non-adapter errors
This commit is contained in:
commit
cbe9ee1cd1
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ import Ember from 'ember';
|
|||
export default Ember.Mixin.create({
|
||||
actions: {
|
||||
error(error, transition) {
|
||||
if (error.errors[0].errorType === 'NotFoundError') {
|
||||
if (error.errors && error.errors[0].errorType === 'NotFoundError') {
|
||||
transition.abort();
|
||||
|
||||
let routeInfo = transition.handlerInfos[transition.handlerInfos.length - 1];
|
||||
|
|
Loading…
Add table
Reference in a new issue