ignore ctx is null early return
This commit is contained in:
@@ -23,7 +23,6 @@ interface Props {
|
||||
}
|
||||
export function EditMessageDetail({ chat, setShowEdit }: Props) {
|
||||
const ctx = useContext(AppContext);
|
||||
if (!ctx) return <div>error</div>;
|
||||
|
||||
const { chatStore, setChatStore } = ctx;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user