File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments