fix: no attachment broadcast fix
This commit is contained in:
@@ -60,7 +60,9 @@ export function BroadcastModal() {
|
||||
}
|
||||
}, [item, dismissing]);
|
||||
|
||||
if (!item) return null;
|
||||
// Guard on the shape, not just presence: a malformed payload must not put
|
||||
// an empty modal over every page in the app.
|
||||
if (!item?.id || !item.title) return null;
|
||||
|
||||
return (
|
||||
<ResponsiveDialog
|
||||
|
||||
Reference in New Issue
Block a user