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:
@ -141,7 +141,11 @@ export const RecordInlineCellContainer = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const showEditButton =
|
const showEditButton =
|
||||||
buttonIcon && !isInlineCellInEditMode && isHovered && !editModeContentOnly;
|
buttonIcon &&
|
||||||
|
!isInlineCellInEditMode &&
|
||||||
|
isHovered &&
|
||||||
|
!editModeContentOnly &&
|
||||||
|
!isDisplayModeContentEmpty;
|
||||||
|
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const labelId = `label-${entityId}-${fieldDefinition?.metadata?.fieldName}`;
|
const labelId = `label-${entityId}-${fieldDefinition?.metadata?.fieldName}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user