18692: Collection panel changes
[arvados-workbench2.git] / src / components / collection-panel-files / collection-panel-files.tsx
index 4b631a6a90935e7158efd54c45b8a02e2b0f2765..06c3504ac52400ee13e0592d6e64fd326ddf95eb 100644 (file)
@@ -328,12 +328,7 @@ export const CollectionPanelFiles = withStyles(styles)(connect((state: RootState
     const currentPDH = (collectionPanel.item || {}).portableDataHash;
     React.useEffect(() => {
         if (currentPDH) {
-            // Avoid fetching the same content level twice
-            if (leftKey !== rightKey) {
-                fetchData([leftKey, rightKey], true);
-            } else {
-                fetchData(rightKey, true);
-            }
+            fetchData([leftKey, rightKey], true);
         }
     }, [currentPDH]); // eslint-disable-line react-hooks/exhaustive-deps