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

@@ -129,7 +129,7 @@
// Restart the refresh timer, if needed
var refreshViewCheck = Component.$Preferences.defaults.SOGoRefreshViewCheck;
if (refreshViewCheck && refreshViewCheck != 'manually') {
if (refreshViewCheck && refreshViewCheck != 'manually' && !isNaN(refreshViewCheck)) {
var f = angular.bind(Component.$rootScope, Component.$rootScope.$emit, 'calendars:list');
Component.$refreshTimeout = Component.$timeout(f, refreshViewCheck.timeInterval()*1000);
}