Hello @Hung_Viet,
A little information would be great to debug your problem, your screenshot is not even opening on click,
I guess, It looks like you are using mongoose npm and they have removed the callback function in many methods in the latest mongoose version 7,
Read the migrating guide,
https://mongoosejs.com/docs/migrating_to_7.html#dropped-callback-support
You need to use .then() instead of the callback function,
userData.save().then(err => {
...
})
3 Likes