diff --git a/src/ObjectList.tsx b/src/ObjectList.tsx index 002fa50..2eb0c15 100644 --- a/src/ObjectList.tsx +++ b/src/ObjectList.tsx @@ -151,15 +151,6 @@ class ObjectList extends React.Component { } render() { - if (!this.state.loaded) { - return ( - <> - { this.renderBreadcrumbs() } - Loading... - - ); - } - return ( <> { this.state.iUpload > 0 ? @@ -191,42 +182,46 @@ class ObjectList extends React.Component { - - { this.state.folders.map((f) => - - - { f } - - - )} - { this.state.files.map((f) => - - -
{ f }
-
- - - -
-
-
- )} -
+ { this.state.loaded ? + + { this.state.folders.map((f) => + + + { f } + + + )} + { this.state.files.map((f) => + + +
{ f }
+
+ + + +
+
+
+ )} +
+ : + Loading... + } ); }