diff --git a/src/components/PodBrowser.vue b/src/components/PodBrowser.vue index edba64c..e31810c 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); + } + }, }, };