Browse Source

refactor(core): Remove redundant expression

Michael Bromley 4 years ago
parent
commit
394fe1af9c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/core/src/api/config/graphql-custom-fields.ts

+ 1 - 1
packages/core/src/api/config/graphql-custom-fields.ts

@@ -188,7 +188,7 @@ export function addGraphQLCustomFields(
     const publicAddressFields = customFieldConfig.Address?.filter(
         config => !config.internal && (publicOnly === true ? config.public !== false : true),
     );
-    if (customFieldConfig.Address?.length && publicAddressFields?.length) {
+    if (publicAddressFields?.length) {
         // For custom fields on the Address entity, we also extend the OrderAddress
         // type (which is used to store address snapshots on Orders)
         if (schema.getType('OrderAddress')) {