1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00

(quality) error message for event reservation

This commit is contained in:
Du Peng 2023-05-02 18:07:21 +02:00
parent e90f4e3e00
commit 7e8c56b4b7
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
# Changelog Fab-manager
- Fix a bug: unable to show calendar for Firefox and Safari
- Improved error message for event reservation
## v6.0.4 2023 April 25

View File

@ -372,7 +372,7 @@ Application.Controllers.controller('ShowEventController', ['$scope', '$state', '
}
, function (response) {
// reservation failed
growl.error(response && response.data && response.data.card && response.data.card[0] || 'server error');
growl.error(response && response.data && _.keys(response.data)[0] && response.data[_.keys(response.data)[0]][0] || 'server error');
// unset the attempting marker
$scope.attempting = false;
})