fix: cleans up duplicative columns

This commit is contained in:
James
2021-04-19 10:23:20 -04:00
parent 99704707dd
commit 5f2073ae68
2 changed files with 2 additions and 10 deletions

View File

@@ -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([
{

View File

@@ -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: {