mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-20 14:54:15 +01:00
(bug) unable to return to the statistics tab
This commit is contained in:
parent
8d43db2579
commit
cbb7e8cbcf
@ -32,6 +32,7 @@
|
||||
- Fix a bug: low stock notification is always sent if one of the stocks has reached the threshold
|
||||
- Fix a bug: unable to update title of availability after admin remove a machine/plan in calendar
|
||||
- Fix a bug: unable to access files from the public folder (like example.csv)
|
||||
- Fix a bug: unable to return to the statistics tab
|
||||
- Updated react-modal to 3.16.1
|
||||
- Updated tiptap editor and its dependencies to 2.0.0-beta.204
|
||||
- [TODO DEPLOY] `rails db:seed`
|
||||
|
@ -410,7 +410,7 @@ Application.Controllers.controller('StatisticsController', ['$scope', '$state',
|
||||
// workaround for angular-bootstrap::tabs behavior: on tab deletion, another tab will be selected
|
||||
// which will cause every tabs to reload, one by one, when the view is closed
|
||||
$transitions.onStart({ to: 'app.admin.statistics' }, function (trans) {
|
||||
if (Object.keys(trans.from().params).length === 0) {
|
||||
if (Object.keys(trans.from().params || {}).length === 0) {
|
||||
return $scope.preventRefresh = true;
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user