Skip to content

Commit

Permalink
hide custom fields section when there are no custom fields created (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelsey-Ethyca authored Jun 14, 2023
1 parent a31211d commit 5724613
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const CustomFieldsList = ({
resourceType,
});

if (!isEnabled) {
if (!isEnabled || sortedCustomFieldDefinitionIds.length === 0) {
return null;
}

Expand Down

0 comments on commit 5724613

Please sign in to comment.