fix: enforce no-leaked-conditional-rendering as error and fix violations (#31262)

Co-authored-by: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
This commit is contained in:
byteforge
2026-01-20 10:08:59 -05:00
committed by GitHub
parent 8f949d503a
commit 8056768106
59 changed files with 80 additions and 80 deletions

View File

@ -24,7 +24,7 @@ vi.mock('@/app/components/datasets/documents/detail/metadata', () => ({
<div data-testid="field-info" data-label={label}>
<span data-testid="field-label">{label}</span>
<span data-testid="field-value">{displayedValue}</span>
{valueIcon && <span data-testid="field-icon">{valueIcon}</span>}
{!!valueIcon && <span data-testid="field-icon">{valueIcon}</span>}
</div>
),
}))