fix: error in context menu

This commit is contained in:
Tristan Yang
2023-03-02 10:30:27 +08:00
parent b7314d7bfe
commit 58e96f387a
+1 -1
View File
@@ -95,7 +95,7 @@ const MessageContextMenu: FC<Props> = ({
icon: <IconDelete className="icon" />, icon: <IconDelete className="icon" />,
handler: toggleDeleteModal handler: toggleDeleteModal
} }
].filter((v) => typeof v !== "boolean" && "title" in v) as Item[]; ].filter((v) => typeof v !== "boolean" && "title" in (v ?? {})) as Item[];
return ( return (
<> <>
{ForwardModal} {ForwardModal}