Skip to content

The open alternative to Salesforce, designed for AI.

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

Zoltán Völcseyc40263106712
diff --git a/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellContainer.tsx b/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellContainer.tsx
index 5170848ed3f..49150429ba6 100644
--- a/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellContainer.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-inline-cell/components/RecordInlineCellContainer.tsx
@@ -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}`;