Skip to content

Commit 67927de

Browse files
committed
pod browser DOM update fix
1 parent bbe8ebe commit 67927de

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

src/components/PodBrowser.vue

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -402,10 +402,12 @@ export default {
402402
},
403403
},
404404
mounted() {
405-
if (this.selectedPodUrl) {
406-
this.displayPath = this.selectedPodUrl; // Assign podUrl to displayPath
407-
this.getItems(this.displayPath); // Fetch items for the initial path
408-
}
405+
setTimeout(() => {
406+
if (this.selectedPodUrl) {
407+
this.displayPath = this.selectedPodUrl; // Assign podUrl to displayPath
408+
this.getItems(this.displayPath); // Fetch items for the initial path
409+
}
410+
}, 200);
409411
// Delays the execution of these functions on page reload (to avoid async-related errors)
410412
},
411413
watch: {
@@ -414,6 +416,11 @@ export default {
414416
this.getItems(this.selectedPodUrl); // Fetch items for the initial path
415417
}
416418
},
419+
dirContents(newValue) {
420+
if (newValue) {
421+
this.getItems(this.displayPath);
422+
}
423+
},
417424
},
418425
};
419426
</script>

0 commit comments

Comments
 (0)