From 67927de0007c7566413e5a9fcc149e5c7f57647a Mon Sep 17 00:00:00 2001 From: ecrum19 Date: Wed, 10 Sep 2025 09:52:40 +0200 Subject: [PATCH] pod browser DOM update fix --- src/components/PodBrowser.vue | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/components/PodBrowser.vue b/src/components/PodBrowser.vue index edba64cf..e31810c2 100644 --- a/src/components/PodBrowser.vue +++ b/src/components/PodBrowser.vue @@ -402,10 +402,12 @@ export default { }, }, mounted() { - if (this.selectedPodUrl) { - this.displayPath = this.selectedPodUrl; // Assign podUrl to displayPath - this.getItems(this.displayPath); // Fetch items for the initial path - } + setTimeout(() => { + if (this.selectedPodUrl) { + this.displayPath = this.selectedPodUrl; // Assign podUrl to displayPath + this.getItems(this.displayPath); // Fetch items for the initial path + } + }, 200); // Delays the execution of these functions on page reload (to avoid async-related errors) }, watch: { @@ -414,6 +416,11 @@ export default { this.getItems(this.selectedPodUrl); // Fetch items for the initial path } }, + dirContents(newValue) { + if (newValue) { + this.getItems(this.displayPath); + } + }, }, };