UI: Fix shape of response anticipated from feature-flags endpoint (#10684)
* Fix shape of response anticipated from feature-flags endpoint * Add changelog
This commit is contained in:
parent
d72c4d5235
commit
5a05a1b39f
|
@ -0,0 +1,3 @@
|
|||
```release-note:bug
|
||||
ui: Fix expected response from feature-flags endpoint
|
||||
```
|
|
@ -89,7 +89,7 @@ export default Route.extend({
|
|||
});
|
||||
if (result.status === 200) {
|
||||
const body = await result.json();
|
||||
const flags = body.data?.feature_flags || [];
|
||||
const flags = body.feature_flags || [];
|
||||
this.featureFlagService.setFeatureFlags(flags);
|
||||
}
|
||||
},
|
||||
|
|
|
@ -4,9 +4,7 @@ import { setupApplicationTest } from 'ember-qunit';
|
|||
import Pretender from 'pretender';
|
||||
|
||||
const FEATURE_FLAGS_RESPONSE = {
|
||||
data: {
|
||||
feature_flags: ['VAULT_CLOUD_ADMIN_NAMESPACE'],
|
||||
},
|
||||
feature_flags: ['VAULT_CLOUD_ADMIN_NAMESPACE'],
|
||||
};
|
||||
|
||||
module('Acceptance | Enterprise | Managed namespace root', function(hooks) {
|
||||
|
|
Loading…
Reference in New Issue