From 1ec28a89c8f95f4ad33dc0f592b0ab34d3350a5b Mon Sep 17 00:00:00 2001 From: MrChocolatine <47531779+MrChocolatine@users.noreply.github.com> Date: Sat, 4 Nov 2023 18:53:06 +0000 Subject: [PATCH] refactor: access key using `get()` --- addon/components/feature-controls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addon/components/feature-controls.js b/addon/components/feature-controls.js index 63ea0ce..ec82720 100644 --- a/addon/components/feature-controls.js +++ b/addon/components/feature-controls.js @@ -51,7 +51,7 @@ export default class FeatureControlsComponent extends Component { ) // Model is a local copy of the list of flags register for features service, used to compute properties on the full list - let model = (this.features.flags || []).map((key) => { + let model = (this.features.get('flags') || []).map((key) => { let meta = ((this.featureControls && this.featureControls.metadata) || []).find((obj) => { return this._normalizeFlag(obj.key) === key