fix: cleans up duplicative columns
This commit is contained in:
@@ -24,16 +24,6 @@ const formatFields = (config) => {
|
||||
]);
|
||||
}
|
||||
|
||||
if (config.auth) {
|
||||
fields = fields.concat([
|
||||
{
|
||||
name: 'enableAPIKey',
|
||||
label: 'Enable API Key for this user',
|
||||
type: 'checkbox',
|
||||
},
|
||||
]);
|
||||
}
|
||||
|
||||
if (config.upload) {
|
||||
fields = fields.concat([
|
||||
{
|
||||
|
||||
@@ -7,6 +7,7 @@ const decryptKey: FieldHook = ({ req, value }) => (value ? req.payload.decrypt(v
|
||||
export default [
|
||||
{
|
||||
name: 'enableAPIKey',
|
||||
label: 'Enable API Key',
|
||||
type: 'checkbox',
|
||||
defaultValue: false,
|
||||
admin: {
|
||||
@@ -17,6 +18,7 @@ export default [
|
||||
},
|
||||
{
|
||||
name: 'apiKey',
|
||||
label: 'API Key',
|
||||
type: 'text',
|
||||
admin: {
|
||||
components: {
|
||||
|
||||
Reference in New Issue
Block a user