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

FIX: Use one-way binding to prevent unnecessary updates in site.periods
diff --git a/app/assets/javascripts/select-kit/components/period-chooser.js.es6 b/app/assets/javascripts/select-kit/components/period-chooser.js.es6
index 4aad9fd..88896a4 100644
--- a/app/assets/javascripts/select-kit/components/period-chooser.js.es6
+++ b/app/assets/javascripts/select-kit/components/period-chooser.js.es6
@@ -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"),

GitHub
sha: dc292d45

3 Likes