diff --git a/app/pods/compare/route.js b/app/pods/compare/route.js index 5b14286..b53f980 100644 --- a/app/pods/compare/route.js +++ b/app/pods/compare/route.js @@ -1,4 +1,12 @@ import Ember from 'ember'; import AuthenticatedRouteMixin from 'simple-auth/mixins/authenticated-route-mixin'; -export default Ember.Route.extend(AuthenticatedRouteMixin); +export default Ember.Route.extend(AuthenticatedRouteMixin, { + resetController: function(controller, isExiting /*, transition*/) { + if (isExiting) { + controller.set('data', null); + controller.set('strains', null); + controller.set('dataEmpty', true); + } + } +});