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;