hcs-t4sg / questable

questable.vercel.app
2 stars 0 forks source link

Bug: Editing and deleting tasks #18

Closed IsoPhoenix closed 2 years ago

IsoPhoenix commented 2 years ago

This might have been an issue with merging everything into main, but editing and deleting tasks does not work correctly atm (the corresponding database mutation is not being made). This may be an issue with preexisting classrooms (although doubtful), so make a new classroom to test and fix this bug.

IsoPhoenix commented 2 years ago

Unhandled Promise Rejection: FirebaseError: No document to update: projects/questable-34d85/databases/(default)/documents/classrooms/Rmzg5KiM6Ocumoms6iUk/tasks/undefined

This is the bug I'm getting at the moment. Looks like the id you're trying to query in Firestore is undefined. Make sure that you are successfully passing in the task information to updateTask, deleteTask, or whatever mutations.js method you are using. Also make sure the data is being handled appropriately inside the mutations.js function