[arvados-workbench2] updated: 2.7.0-220-gb209139f
git repository hosting
git at public.arvados.org
Mon Nov 27 17:53:46 UTC 2023
Summary of changes:
src/views-components/details-panel/details-panel.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
via b209139fad51806fb985a6dd0b7b1be5b3917189 (commit)
from 84d3e7312bb90b5f45640e8b0e4f434ed7dc6738 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit b209139fad51806fb985a6dd0b7b1be5b3917189
Author: Lisa Knox <lisaknox83 at gmail.com>
Date: Mon Nov 27 12:53:39 2023 -0500
21128: fixed detailspanel edit crash Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>
diff --git a/src/views-components/details-panel/details-panel.tsx b/src/views-components/details-panel/details-panel.tsx
index 39cb78aa..2653a210 100644
--- a/src/views-components/details-panel/details-panel.tsx
+++ b/src/views-components/details-panel/details-panel.tsx
@@ -86,7 +86,7 @@ const getItem = (res: DetailsResource): DetailsData => {
const mapStateToProps = ({ auth, detailsPanel, resources, collectionPanelFiles, multiselect, router }: RootState) => {
const isDetailsResourceChecked = multiselect.checkedList[detailsPanel.resourceUuid]
const currentRoute = router.location ? router.location.pathname : "";
- const currentItemUuid = isDetailsResourceChecked ? detailsPanel.resourceUuid : multiselect.selectedUuid ? multiselect.selectedUuid : currentRoute.split('/')[2];
+ const currentItemUuid = isDetailsResourceChecked || currentRoute.includes('collections') ? detailsPanel.resourceUuid : multiselect.selectedUuid ? multiselect.selectedUuid : currentRoute.split('/')[2];
const resource = getResource(currentItemUuid)(resources) as DetailsResource | undefined;
const file = resource
? undefined
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list