From e015d89b5212dd8a4e50f01f8560e59cbecda00e Mon Sep 17 00:00:00 2001 From: Ellen Kraffmiller Date: Tue, 23 Jul 2024 21:44:32 -0400 Subject: [PATCH] rename Dataset search param constant DatasetCardHeader.tsx --- .../datasets-list/dataset-card/DatasetCardHeader.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sections/collection/datasets-list/dataset-card/DatasetCardHeader.tsx b/src/sections/collection/datasets-list/dataset-card/DatasetCardHeader.tsx index a4d4138fa..995177fc4 100644 --- a/src/sections/collection/datasets-list/dataset-card/DatasetCardHeader.tsx +++ b/src/sections/collection/datasets-list/dataset-card/DatasetCardHeader.tsx @@ -6,7 +6,7 @@ import { DatasetIcon } from '../../../dataset/dataset-icon/DatasetIcon' import { DatasetPublishingStatus, DatasetVersion, - DatasetVersionNonNumericSearchParam + DatasetNonNumericVersionSearchParam } from '../../../../dataset/domain/models/Dataset' interface DatasetCardHeaderProps { @@ -19,7 +19,7 @@ function getSearchParams( ): Record { const params: Record = { persistentId: persistentId } if (publishingStatus === DatasetPublishingStatus.DRAFT) { - params.version = DatasetVersionNonNumericSearchParam.DRAFT + params.version = DatasetNonNumericVersionSearchParam.DRAFT } return params }