From ff814dcfc1282750c64fce7967f38d7bb3796abf Mon Sep 17 00:00:00 2001 From: Faizaan Gagan Date: Tue, 30 Mar 2021 00:57:55 +0530 Subject: [PATCH] FIX: additionalOpts update and change to function (#12546) * FIX: additionalOpts should be added outside conditional * FIX: changed the computed property to function --- .../javascripts/discourse/app/components/topic-timer-info.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/topic-timer-info.js b/app/assets/javascripts/discourse/app/components/topic-timer-info.js index 7395930f79e..0b467f63955 100644 --- a/app/assets/javascripts/discourse/app/components/topic-timer-info.js +++ b/app/assets/javascripts/discourse/app/components/topic-timer-info.js @@ -45,7 +45,6 @@ export default Component.extend({ return canModifyTimer && showTopicTimerModal; }, - @discourseComputed additionalOpts() { return {}; }, @@ -94,11 +93,11 @@ export default Component.extend({ categoryName: category.get("slug"), categoryUrl: category.get("url"), }, - options, - this.additionalOpts + options ); } + options = Object.assign(options, this.additionalOpts()); this.setProperties({ title: `${moment(this.executeAt).format("LLLL")}`.htmlSafe(), notice: `${I18n.t(this._noticeKey(), options)}`.htmlSafe(),