1
0
Fork 0
mirror of synced 2024-08-18 03:21:29 +12:00

Display error when populated from the backend

This commit is contained in:
Adria Navarro 2023-05-08 11:53:14 +02:00
parent f59a9da809
commit 51f5f4c018

View file

@ -130,7 +130,11 @@
try {
await groups.actions.save(group)
} catch (error) {
notifications.error(`Failed to save user group`)
if (error.message) {
notifications.error(error.message)
} else {
notifications.error(`Failed to save user group`)
}
}
}