From abdb9467a82802c8da971697700a47319eaa6f22 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Mon, 31 Aug 2015 21:42:31 +0530 Subject: [PATCH] fix the build :fired: --- app/assets/javascripts/discourse/controllers/invite.js.es6 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/controllers/invite.js.es6 b/app/assets/javascripts/discourse/controllers/invite.js.es6 index 54edc7706ce..7befba51c2f 100644 --- a/app/assets/javascripts/discourse/controllers/invite.js.es6 +++ b/app/assets/javascripts/discourse/controllers/invite.js.es6 @@ -176,10 +176,9 @@ export default Ember.Controller.extend(ModalFunctionality, { userInvitedController = this.get('controllers.user-invited-show'), model = this.get('model'); + var topicId = null; if (this.get('invitingToTopic')) { - var topicId = this.get('model.id'); - } else { - var topicId = null; + topicId = this.get('model.id'); } model.setProperties({ saving: true, error: false });