fix: forward error

This commit is contained in:
Tristan Yang
2022-07-17 17:42:33 +08:00
parent 7d8c911a64
commit 963fd9a0a3
+1 -1
View File
@@ -25,7 +25,7 @@ interface SendMessageDTO {
}
const useSendMessage = (props: Props) => {
const { context = "user", from, to = null } = props;
const { context = "user", from, to = null } = props || {};
const dispatch = useAppDispatch();
const stageFiles = useAppSelector((store) => store.ui.uploadFiles[`${context}_${to}`] || []);
const [replyMessage, { isError: replyErr, isLoading: replying, isSuccess: replySuccess }] =