diff --git a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx index a579fe17af2..865782e3da6 100644 --- a/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx +++ b/studio/components/layouts/TableEditorLayout/TableEditorMenu.tsx @@ -382,6 +382,13 @@ const EntityListItem = ({ isLoadingTableMetadata = false, }: EntityListItemProps) => { const isActive = Number(id) === entity.id + const formatTooltipText = (entityType: string) => { + return Object.entries(ENTITY_TYPE) + .find(([, value]) => value === entityType)?.[0] + ?.toLowerCase() + ?.split('_') + ?.join(' ') + } return ( - {Object.entries(ENTITY_TYPE) - .find(([, value]) => value === entity.type)?.[0] - ?.toLowerCase()} + {formatTooltipText(entity.type)}