From fc18cadd384fabcf928ef0d671aeb5a48cb2e5a7 Mon Sep 17 00:00:00 2001 From: Max Berger Date: Sat, 21 Mar 2026 22:58:22 +0100 Subject: [PATCH] Fix: Break infinite loop during cache load failure --- radicale/web/internal_data/js/utils/collections_cache.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/radicale/web/internal_data/js/utils/collections_cache.js b/radicale/web/internal_data/js/utils/collections_cache.js index 7110df0f..cc5669c6 100644 --- a/radicale/web/internal_data/js/utils/collections_cache.js +++ b/radicale/web/internal_data/js/utils/collections_cache.js @@ -26,7 +26,7 @@ import { is_current_scene, pop_scene, push_scene } from "../scenes/scene_manager class CollectionsCache { constructor() { - this.child_collections = null; + /** @type {?Array} */ this.child_collections = null; /** @type {?Array} */ this.incoming_shares = null; this.server_features = null; /** @type {?XMLHttpRequest} */ this.collections_req = null; @@ -73,6 +73,8 @@ class CollectionsCache { } if (error) { onerror(error); + this.child_collections = []; + this.incoming_shares = []; pop_scene(); } else if (collections !== null && shares !== null) { this.child_collections = collections;