Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query Regarding Error in MegaBlog Code #159

Open
abhigaikwad25 opened this issue Jul 13, 2024 · 1 comment
Open

Query Regarding Error in MegaBlog Code #159

abhigaikwad25 opened this issue Jul 13, 2024 · 1 comment

Comments

@abhigaikwad25
Copy link

Dear Hitesh Choudhary Sir,

I hope this message finds you well.

I am writing to seek your assistance regarding an issue I am encountering with the MegaBlog code. When I run the code, it directly opens the login page. After logging in, I can upload an image without any problem. However, if I log out and then log in again with the same email and try to post, the following error appears in the console:

arduino
Copy code
PostForm.jsx:43 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '$id')
at submit (PostForm.jsx:43:93)
at async react-hook-form.js?v=80acb06b:1557:7
I have also tried using your code, but the same problem persists.

Could you please provide guidance on how to resolve this issue? Any insights or suggestions would be greatly appreciated.

Thank you for your time and assistance.

Best regards,
[Your Name]
[Your Contact Information]

@Ayush470
Copy link

Ayush470 commented Oct 17, 2024

Try removing userData from action.payload.userData and instead directly assign action.payload to state.userData in your authSlice.js file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants