From cb7403e7311c5c24b752a01efa28ca489f6d550a Mon Sep 17 00:00:00 2001 From: Ellen Kraffmiller Date: Mon, 6 Jan 2025 06:56:44 -0500 Subject: [PATCH] fix: call submitPublish() with VersionUpdateType.MAJOR when requiresMajorVersionUpdate=true --- .../dataset/publish-dataset/PublishDatasetModal.tsx | 6 ++++-- .../dataset/dataset-publish/PublishDatasetModal.spec.tsx | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/sections/dataset/publish-dataset/PublishDatasetModal.tsx b/src/sections/dataset/publish-dataset/PublishDatasetModal.tsx index 62b45ba8e..4b5cc1941 100644 --- a/src/sections/dataset/publish-dataset/PublishDatasetModal.tsx +++ b/src/sections/dataset/publish-dataset/PublishDatasetModal.tsx @@ -47,7 +47,6 @@ export function PublishDatasetModal({ const { t } = useTranslation('dataset') const { user } = useSession() const navigate = useNavigate() - console.log('requiresMajorVersionUpdate', requiresMajorVersionUpdate) const { submissionStatus, submitPublish, publishError } = usePublishDataset( repository, collectionRepository, @@ -139,7 +138,10 @@ export function PublishDatasetModal({