Skip to content

Commit

Permalink
fix(form-builder): hide validation status when no validation items
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoerge committed Apr 8, 2021
1 parent cd080ec commit 2e8ef33
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export const ItemCell = React.forwardRef(function ItemCell(
)}
<Flex>
<Box flex={1}>{(!readOnly && isSortable && dragHandle) || ' '}</Box>
{value._key && (
<Box>
{value._key && validation.length > 0 && (
<Box marginLeft={1} paddingX={1} paddingY={3}>
<FormFieldValidationStatus
__unstable_markers={validation}
placement="bottom"
Expand Down

0 comments on commit 2e8ef33

Please sign in to comment.