Wizard: Fix On Edit startIndex

With Snapshotting being only hidden startIndex needs to be updated.
This commit is contained in:
regexowl 2024-08-01 17:57:52 +02:00 committed by Klara Simickova
parent 2febf98e93
commit 8a5dea7abf

View file

@ -187,11 +187,7 @@ const CreateImageWizard = ({ isEdit }: CreateImageWizardProps) => {
let startIndex = 1; // default index
if (isEdit) {
if (snapshottingEnabled) {
startIndex = 15;
} else {
startIndex = 14;
}
startIndex = 15;
}
// Duplicating some of the logic from the Wizard component to allow for custom nav items status