From c40263106712058603167654760b6a2573f44343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20V=C3=B6lcsey?= <41576384+zvolcsey@users.noreply.github.com> Date: Thu, 18 Apr 2024 13:47:12 +0200 Subject: [PATCH] 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 --- .../components/RecordInlineCellContainer.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 5170848ed..49150429b 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}`;