Skip to content

Commit 324f4cb

Browse files
pattonwebzclaude
andcommitted
fix: prevent React rendering literal 0 in dismissed metadata block
issue?.ignre_global is 0 (a number) when not globally dismissed. When user/date/name are also empty strings, the || chain resolves to 0 and React renders it as text. Replace with isGloballyDismissed which is already computed as a boolean from the same field. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent c71b37a commit 324f4cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/issueModal/components/DismissPanel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ const DismissPanel = ( { issue, isOpen, onToggle, onIgnore, onCloseModal, forceG
142142
) }
143143
{ isIgnored ? (
144144
<>
145-
{ ( issue?.user || issue?.ignre_user_name || issue?.ignre_date || issue?.ignre_global ) && (
145+
{ ( issue?.user || issue?.ignre_user_name || issue?.ignre_date || isGloballyDismissed ) && (
146146
<dl className="edac-analysis__dismissed-meta">
147147

148148
{ ( issue?.ignre_global === 1 || issue?.ignre_global === '1' ) && (

0 commit comments

Comments
 (0)