diff --git a/app/assets/javascripts/user/app/controllers/application_controller.js.coffee b/app/assets/javascripts/user/app/controllers/application_controller.js.coffee index bb996d46..290b64bd 100644 --- a/app/assets/javascripts/user/app/controllers/application_controller.js.coffee +++ b/app/assets/javascripts/user/app/controllers/application_controller.js.coffee @@ -62,5 +62,7 @@ App.ApplicationController = Ember.Controller.extend # if jqXHR.status == 404 officially, now assume close list on error #@redirect_to 'index', message: 'the_list_has_been_closed' console.log "Error: #{emberError.message}" if emberError.message + if error_list = @store.all('list').findBy('id', 'current') + error_list.eraseRecord() @set 'list', null @store.find('list', 'current').then(success, error)