mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 16:41:24 +03:00
Merge pull request #3014 from ErisDS/issue-3013
Check for undefined model
This commit is contained in:
commit
bcc135360c
@ -9,7 +9,7 @@ var EditorNewController = Ember.ObjectController.extend(EditorControllerMixin, {
|
||||
var self = this;
|
||||
this._super().then(function (model) {
|
||||
if (model.get('id')) {
|
||||
self.transitionTo('editor.edit', model);
|
||||
self.transitionToRoute('editor.edit', model);
|
||||
}
|
||||
return model;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user