Skip to content

Commit

Permalink
fix: cleans up duplicative columns
Browse files Browse the repository at this point in the history
  • Loading branch information
jmikrut committed Apr 19, 2021
1 parent 9970470 commit 5f2073a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/admin/components/views/collections/List/formatFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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([
{
Expand Down
2 changes: 2 additions & 0 deletions src/fields/baseFields/baseAPIKeyFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -17,6 +18,7 @@ export default [
},
{
name: 'apiKey',
label: 'API Key',
type: 'text',
admin: {
components: {
Expand Down

0 comments on commit 5f2073a

Please sign in to comment.