mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-10-04 10:12:10 +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) {
|
}: CollapsibleAlertProps) {
|
||||||
const [isExpanded, setIsExpanded] = useState(false);
|
const [isExpanded, setIsExpanded] = useState(false);
|
||||||
const hasDetails = Boolean(errorState.details);
|
const hasDetails = Boolean(errorState.details);
|
||||||
|
if (!errorState.message && !hasDetails) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue