vaibhav-rm / Library-Management-System

5 stars 5 forks source link

Books cannot be updated #4

Open vaibhav-rm opened 1 month ago

vaibhav-rm commented 1 month ago

There is a bug in BookManagement page of Admin Layout, The form works when adding a new book but returns errors when trying to update it.

Error details:


Error updating book: 
Object { stack: "AxiosError@http://localhost:5173/node_modules/.vite/deps/axios.js?v=140600ef:397:18\nsettle@http://localhost:5173/node_modules/.vite/deps/axios.js?v=140600ef:1230:12\nonloadend@http://localhost:5173/node_modules/.vite/deps/axios.js?v=140600ef:1593:13\n", message: "Request failed with status code 400", name: "AxiosError", code: "ERR_BAD_REQUEST", config: {…}, request: XMLHttpRequest, response: {…}, status: 400 }
BookManagement.jsx:57:14
    handleEditBook BookManagement.jsx:57
opbot-xd commented 1 month ago

can give it a try, could you assign this issue to me?

vaibhav-rm commented 1 month ago

can give it a try, could you assign this issue to me?

All yours to handle!