fix(view): automatically refresh view only if a number is set.

This commit is contained in:
Hivert Quentin
2025-07-07 15:39:59 +02:00
parent d48befd151
commit 55dbae6bee
5 changed files with 5 additions and 5 deletions

View File

@@ -458,7 +458,7 @@
// Restart the refresh timer, if needed
var refreshViewCheck = AddressBook.$Preferences.defaults.SOGoRefreshViewCheck;
if (refreshViewCheck && refreshViewCheck != 'manually') {
if (refreshViewCheck && refreshViewCheck != 'manually' && !isNaN(refreshViewCheck)) {
var f = angular.bind(this, AddressBook.prototype.$reload);
AddressBook.$refreshTimeout = AddressBook.$timeout(f, refreshViewCheck.timeInterval()*1000);
}