Skip to content

Commit 9b887d0

Browse files
committed
refactor: access key using get()
From https://github.com/kategengler/ember-feature-flags/blob/v6.0.0/README.md?plain=1#L7 > ### Note to users of `ember.js` >= 3.1 > Referencing the features service must be done using `get` as it is a proxy.
1 parent c2a3b8b commit 9b887d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/components/feature-controls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default class FeatureControlsComponent extends Component {
5151
)
5252

5353
// Model is a local copy of the list of flags register for features service, used to compute properties on the full list
54-
let model = (this.features.flags || []).map((key) => {
54+
let model = (this.features.get('flags') || []).map((key) => {
5555
let meta =
5656
((this.featureControls && this.featureControls.metadata) || []).find((obj) => {
5757
return this._normalizeFlag(obj.key) === key

0 commit comments

Comments
 (0)