mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 20:53:15 +00:00
fix: Improper error rendering bug (#478)
This commit is contained in:
parent
3967ea0dca
commit
ed923a98ca
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue