fix: Added isDisplayModeContentEmpty to the showEditButton's check (#5025)

Closes #5011 

Hi! I added isDisplayModeContentEmpty to the showEditButton's check.


https://github.com/twentyhq/twenty/assets/41576384/54a87c16-b58a-4a46-8373-f6c924201113
This commit is contained in:
Zoltán Völcsey
2024-04-18 13:47:12 +02:00
committed by GitHub
parent 168358a327
commit c402631067

View File

@ -141,7 +141,11 @@ export const RecordInlineCellContainer = ({
};
const showEditButton =
buttonIcon && !isInlineCellInEditMode && isHovered && !editModeContentOnly;
buttonIcon &&
!isInlineCellInEditMode &&
isHovered &&
!editModeContentOnly &&
!isDisplayModeContentEmpty;
const theme = useTheme();
const labelId = `label-${entityId}-${fieldDefinition?.metadata?.fieldName}`;