mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 18:05:20 +00:00
Prevents from push on undefined elements
This commit is contained in:
parent
5b97e7299d
commit
75e3f3588f
@ -81,6 +81,7 @@ var app = require('ui/modules').get('apps/webinar_app', [])
|
||||
}
|
||||
}
|
||||
|
||||
if(typeof $rootScope.loadedVisualizations === 'undefined') $rootScope.loadedVisualizations = [];
|
||||
$rootScope.loadedVisualizations.push(true);
|
||||
$rootScope.loadingStatus = `Rendering visualizations... ${Math.round((100 * $rootScope.loadedVisualizations.length / $rootScope.tabVisualizations[$location.search().tab]) * 100) / 100} %`;
|
||||
if ($rootScope.loadedVisualizations.length >= $rootScope.tabVisualizations[$location.search().tab]) {
|
||||
|
Loading…
Reference in New Issue
Block a user