diff --git a/src/services/useMetastoreDataset/useMetastoreDataset.tsx b/src/services/useMetastoreDataset/useMetastoreDataset.tsx index cac19a2c..271eacdb 100644 --- a/src/services/useMetastoreDataset/useMetastoreDataset.tsx +++ b/src/services/useMetastoreDataset/useMetastoreDataset.tsx @@ -10,6 +10,7 @@ const useMetastoreDataset = (datasetId : string, rootAPIUrl : string, additional error: '', description: '', identifier: '', + modified: '', } as DatasetType); const [id, setId] = useState(datasetId) const [rootUrl, setRootUrl] = useState(rootAPIUrl) @@ -18,7 +19,7 @@ const useMetastoreDataset = (datasetId : string, rootAPIUrl : string, additional async function fetchData() { return axios.get(`${rootUrl}/metastore/schemas/dataset/items/${id}?show-reference-ids${additionalParamsString}`) .then((res) => setDataset(res.data)) - .catch((error) => setDataset({title: dataset.title, distribution: dataset.distribution, error: error, description: dataset.description, identifier: dataset.identifier})); + .catch((error) => setDataset({title: dataset.title, distribution: dataset.distribution, error: error, description: dataset.description, identifier: dataset.identifier, modified: dataset.modified})); } fetchData(); }, [id, rootUrl]); diff --git a/src/templates/Dataset/index.tsx b/src/templates/Dataset/index.tsx index e55dea36..a1866632 100644 --- a/src/templates/Dataset/index.tsx +++ b/src/templates/Dataset/index.tsx @@ -15,6 +15,7 @@ import DatasetOverview from '../../components/DatasetOverviewTab'; import DatasetAPI from '../../components/DatasetAPITab'; import DataDictionary from '../../components/DatasetDataDictionaryTab'; import { DatasetDictionaryItemType, DatasetPageType, DatasetDictionaryType, DistributionType, ResourceType } from '../../types/dataset'; +import TransformedDate from '../../components/TransformedDate'; import './dataset.scss'; const getSiteWideDataDictionary = (rootUrl : string, dataDictionaryUrl : string) => { @@ -134,9 +135,14 @@ const Dataset = ({
Updated