Commit 492df24d authored by Ioannis Tsafaras's avatar Ioannis Tsafaras
Browse files

Fix minor route bug

parent 27ec75c8
......@@ -20,7 +20,7 @@ export default Ember.Route.extend(AuthenticatedRouteMixin, {
application: this.store.findRecord('lambda-app', params.app_uuid, { reload: true }),
instances: this.store.peekAll('lambda-instance')
};
if (this.store.peekAll('lambda-instance').get('length') === 0) {
if (this.store.peekAll('app-action').get('length') === 0) {
hash.app = this.store.createRecord('app-action', {});
}
return Ember.RSVP.hash(hash);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment