mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: session issues/bugs
This commit is contained in:
parent
81bc8e7e82
commit
644693149a
20 changed files with 20 additions and 21 deletions
|
|
@ -143,7 +143,7 @@ const UserFeedbackModal = (props: AIEditorToolkitProps) => {
|
|||
const dispatchAIEditor = useAIEditorDispatch() as any
|
||||
const aiEditorState = useAIEditor() as AIEditorStateTypes
|
||||
const session = useLHSession() as any
|
||||
const access_token = session.data.tokens.access_token;
|
||||
const access_token = session?.data?.tokens?.access_token;
|
||||
|
||||
const handleChange = async (event: React.ChangeEvent<HTMLInputElement>) => {
|
||||
await dispatchAIEditor({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue