18692: Collection panel changes
authorDaniel Kutyła <daniel.kutyla@contractors.roche.com>
Thu, 22 Sep 2022 20:17:27 +0000 (22:17 +0200)
committerDaniel Kutyła <daniel.kutyla@contractors.roche.com>
Thu, 22 Sep 2022 20:17:27 +0000 (22:17 +0200)
Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła <daniel.kutyla@contractors.roche.com>

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