Skip to content

Commit

Permalink
rename Dataset search param constant DatasetCardHeader.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ekraffmiller committed Jul 24, 2024
1 parent 8d6e68e commit e015d89
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { DatasetIcon } from '../../../dataset/dataset-icon/DatasetIcon'
import {
DatasetPublishingStatus,
DatasetVersion,
DatasetVersionNonNumericSearchParam
DatasetNonNumericVersionSearchParam
} from '../../../../dataset/domain/models/Dataset'

interface DatasetCardHeaderProps {
Expand All @@ -19,7 +19,7 @@ function getSearchParams(
): Record<string, string> {
const params: Record<string, string> = { persistentId: persistentId }
if (publishingStatus === DatasetPublishingStatus.DRAFT) {
params.version = DatasetVersionNonNumericSearchParam.DRAFT
params.version = DatasetNonNumericVersionSearchParam.DRAFT
}
return params
}
Expand Down

0 comments on commit e015d89

Please sign in to comment.