diff --git a/core/src/section/Ellipsis.tsx b/core/src/section/Ellipsis.tsx index 709bae6e..f400c415 100644 --- a/core/src/section/Ellipsis.tsx +++ b/core/src/section/Ellipsis.tsx @@ -23,7 +23,8 @@ export const EllipsisComp = ({ isExpanded, value, keyName }: E const child = render && typeof render === 'function' && render({ ...reset, 'data-expanded': isExpanded }, { value, keyName }); if (child) return child; - if (!isExpanded) return null; + + if (!isExpanded || (typeof value === 'object' && Object.keys(value).length == 0)) return null; return ; };