From: Daniel Kutyła Date: Thu, 22 Sep 2022 20:17:27 +0000 (+0200) Subject: 18692: Collection panel changes X-Git-Tag: 2.5.0~33^2~13 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/1671375fc47aa0be6f3e8ea41a4756729d0f00b4 18692: Collection panel changes Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła --- diff --git a/src/components/collection-panel-files/collection-panel-files.tsx b/src/components/collection-panel-files/collection-panel-files.tsx index 4b631a6a..06c3504a 100644 --- a/src/components/collection-panel-files/collection-panel-files.tsx +++ b/src/components/collection-panel-files/collection-panel-files.tsx @@ -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