FIX: Use one-way binding to prevent unnecessary updates in site.periods

This commit is contained in:
Vinoth Kannan 2018-12-20 03:39:05 +05:30
parent bb67ca9d21
commit dc292d4598

View File

@ -5,7 +5,7 @@ export default DropdownSelectBoxComponent.extend({
classNames: ["period-chooser"],
rowComponent: "period-chooser/period-chooser-row",
headerComponent: "period-chooser/period-chooser-header",
content: Ember.computed.alias("site.periods"),
content: Ember.computed.oneWay("site.periods"),
value: Ember.computed.alias("period"),
isHidden: Ember.computed.alias("showPeriods"),