fix: Improper error rendering bug (#478)

This commit is contained in:
Brace Sproul 2025-07-22 15:49:17 -07:00 • committed by GitHub
parent 3967ea0dca
commit ed923a98ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -45,6 +45,9 @@ function CollapsibleAlert({
}: CollapsibleAlertProps) {
const [isExpanded, setIsExpanded] = useState(false);
const hasDetails = Boolean(errorState.details);
if (!errorState.message && !hasDetails) {
return null;
}
return (
<div