Skip to content

Commit 724e7bf

Browse files
authored
[DevTools] Repeat the "name" if there's no short description in groups (facebook#34894)
It looks weird when the row is blank when there's no short description for the entry in a group. <img width="328" height="436" alt="Screenshot 2025-10-17 at 12 25 30 AM" src="https://github.com/user-attachments/assets/12f5c55f-a37f-4b6d-913e-f763cec6b211" />
1 parent ef88c58 commit 724e7bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-devtools-shared/src/devtools/views/Components/InspectedElementSuspendedBy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ function SuspendedByRow({
169169
type={isOpen ? 'expanded' : 'collapsed'}
170170
/>
171171
<span className={styles.CollapsableHeaderTitle}>
172-
{skipName ? shortDescription : name}
172+
{skipName && shortDescription !== '' ? shortDescription : name}
173173
</span>
174174
{skipName || shortDescription === '' ? null : (
175175
<>

0 commit comments

Comments
 (0)