Skip to content

Commit

Permalink
Update to v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kid1194 committed Sep 25, 2022
1 parent 1de5085 commit e9d2cf5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion active_users/public/js/active_users.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,15 @@ frappe.ActiveUsers = class ActiveUsers {
this.sync_settings()
.then(function() {
if (!me.settings.is_enabled) me.destroy();
else me.setup_manual_sync();
else {
if (!me.data) {
me.data = [];
frappe.run_serially([
function() { me.setup_display(); },
function() { me.sync_reload(); },
]);
} else me.setup_manual_sync();
}
});
}
sync_settings() {
Expand Down

0 comments on commit e9d2cf5

Please sign in to comment.