chore: handle nested data from static json credentials (#2611)
This commit is contained in:
1 parent
2869020e65
commit
6de20b03ef
5 files changed
+164
-20
No files matched your search
@@ -5,7 +5,7 @@
|
||||
|
||||
import Component from '@glimmer/component';
|
||||
import { inject as service } from '@ember/service';
|
||||
import { types } from 'api/models/credential';
|
||||
import { TYPES_CREDENTIAL } from 'api/models/credential';
|
||||
|
||||
export default class FormCredentialComponent extends Component {
|
||||
// =services
|
||||
@@ -18,7 +18,7 @@ export default class FormCredentialComponent extends Component {
|
||||
*/
|
||||
get credentialTypes() {
|
||||
return this.features.isEnabled('json-credentials')
|
||||
? types
|
||||
: types.filter((type) => type !== 'json');
|
||||
? TYPES_CREDENTIAL
|
||||
: TYPES_CREDENTIAL.filter((type) => type !== 'json');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user