diff --git a/frontend/src/components/worksheets/BundleDetail/BundleDetail.jsx b/frontend/src/components/worksheets/BundleDetail/BundleDetail.jsx index 204cc2148..4af4229fd 100644 --- a/frontend/src/components/worksheets/BundleDetail/BundleDetail.jsx +++ b/frontend/src/components/worksheets/BundleDetail/BundleDetail.jsx @@ -4,7 +4,7 @@ import { useEffect, useState } from 'react'; import { JsonApiDataStore } from 'jsonapi-datastore'; import { findDOMNode } from 'react-dom'; import useSWR from 'swr'; -import { apiWrapper, fetchFileSummary } from '../../../util/apiWrapper'; +import { apiWrapper, fetchBundleStores, fetchFileSummary } from '../../../util/apiWrapper'; import ConfigPanel from '../ConfigPanel'; import ErrorMessage from '../ErrorMessage'; @@ -111,6 +111,12 @@ const BundleDetail = ({ bundleInfo.metadataTypes = response.data.meta.metadata_type; setBundleInfo(bundleInfo); setMetadataErrors([]); + + fetchBundleStores(uuid).then((response) => { + const bundleStore = response.data[0].attributes.name; + bundleInfo.bundleStore = bundleStore; + setBundleInfo(bundleInfo); + }); }, }); diff --git a/frontend/src/components/worksheets/BundleDetail/BundleDetailSideBar.jsx b/frontend/src/components/worksheets/BundleDetail/BundleDetailSideBar.jsx index c17700d67..4f6ef5420 100644 --- a/frontend/src/components/worksheets/BundleDetail/BundleDetailSideBar.jsx +++ b/frontend/src/components/worksheets/BundleDetail/BundleDetailSideBar.jsx @@ -109,8 +109,8 @@ class BundleDetailSideBar extends React.Component { {(showRunFields || showDatasetFields) && ( onUpdate({ store })} + field={bundle.bundleStore} + onChange={(bundleStore) => onUpdate({ bundleStore })} /> )}