diff --git a/public/app/features/provisioning/Wizard/ProvisioningWizard.tsx b/public/app/features/provisioning/Wizard/ProvisioningWizard.tsx index 000d7a845ed..2c125fbdbe8 100644 --- a/public/app/features/provisioning/Wizard/ProvisioningWizard.tsx +++ b/public/app/features/provisioning/Wizard/ProvisioningWizard.tsx @@ -170,6 +170,14 @@ export function ProvisioningWizard({ type }: { type: RepoType }) { } }; + const onDiscard = async () => { + if (repoName) { + await handleRepositoryDeletion(repoName); + } + + await handlePrevious(); + }; + const handlePrevious = async () => { // For cancel actions, show confirmation modal if (shouldUseCancelBehavior) { @@ -333,7 +341,7 @@ export function ProvisioningWizard({ type }: { type: RepoType }) {