UI: skip auto-reload for historical data queries

https://github.com/safing/portmaster/issues/2039
This commit is contained in:
Alexandr Stelnykovych
2025-10-15 16:13:55 +03:00
parent 153768fb21
commit 54fe389c9d

View File

@@ -281,6 +281,11 @@ export class SfngNetqueryViewer implements OnInit, OnDestroy, AfterViewInit {
map(() => {
if (this.loading) return 0;
if (this.dateFilter?.length >= 2 && this.dateFilter[1].getTime() <= this.lastReload.getTime()) {
// Skip reload when dateFilter[1] (end date) <= lastReload (no new results expected)
return 0;
}
const intervalSeconds = reloadIntervalValues[this.autoReloadIntervalName] || 0;
if (intervalSeconds <= 0) return 0;