diff --git a/CHANGELOG.md b/CHANGELOG.md index ceca45fa1a..06c9e32a1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ The types of changes are: - Fix race condition with consent modal link rendering [#3521](https://github.com/ethyca/fides/pull/3521) - Remove the `fides-js` banner from tab order when it is hidden and move the overlay components to the top of the tab order. [#3510](https://github.com/ethyca/fides/pull/3510) +- Hide custom fields section when there are no custom fields created [#3554](https://github.com/ethyca/fides/pull/3554) - Disable connector dropdown in integration tab on save [#3552](https://github.com/ethyca/fides/pull/3552) - Handles an edge case for non-existent identities with the Kustomer API [#3513](https://github.com/ethyca/fides/pull/3513) diff --git a/clients/admin-ui/src/features/common/custom-fields/CustomFieldsList.tsx b/clients/admin-ui/src/features/common/custom-fields/CustomFieldsList.tsx index 00b77aecc9..8435d43430 100644 --- a/clients/admin-ui/src/features/common/custom-fields/CustomFieldsList.tsx +++ b/clients/admin-ui/src/features/common/custom-fields/CustomFieldsList.tsx @@ -26,7 +26,7 @@ export const CustomFieldsList = ({ resourceType, }); - if (!isEnabled) { + if (!isEnabled || sortedCustomFieldDefinitionIds.length === 0) { return null; }