Skip to content

Commit

Permalink
fix:usePollDatasetLocks.ts remove DraftAlert when navigating to publi…
Browse files Browse the repository at this point in the history
…shed Dataset
  • Loading branch information
ekraffmiller committed Jul 1, 2024
1 parent b9ccab8 commit 5918c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sections/dataset/usePollDatasetLocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const usePollDatasetLocks = (

const navigateToPublishedDataset = (persistentId: string) => {
removeDatasetAlert(AlertMessageKey.PUBLISH_IN_PROGRESS)
removeDatasetAlert(AlertMessageKey.DRAFT_VERSION)
navigate(`${Route.DATASETS}?persistentId=${persistentId}`, {
state: { publishInProgress: false }
})
Expand All @@ -26,7 +27,6 @@ const usePollDatasetLocks = (

if (publishInProgress && dataset) {
addDatasetAlert({ messageKey: AlertMessageKey.PUBLISH_IN_PROGRESS, variant: 'info' })
removeDatasetAlert(AlertMessageKey.DRAFT_VERSION)
const gotoReleasedPageAfterPublish = async () => {
const initialLocks = await getDatasetLocks(datasetRepository, dataset.persistentId)
console.log('initial locks:', JSON.stringify(initialLocks))
Expand Down

0 comments on commit 5918c3c

Please sign in to comment.