Wizard: Fix nav issues On Edit

Since the FirstBoot step is now always rendered but conditionally hidden, Wizard was opening on the Details step in Edit.
This commit is contained in:
regexowl 2024-08-01 16:06:17 +02:00 committed by Klara Simickova
parent 8ee2bad55e
commit fddf520864

View file

@ -188,9 +188,9 @@ const CreateImageWizard = ({ isEdit }: CreateImageWizardProps) => {
let startIndex = 1; // default index
if (isEdit) {
if (snapshottingEnabled) {
startIndex = isFirstBootEnabled ? 15 : 14;
startIndex = 15;
} else {
startIndex = isFirstBootEnabled ? 14 : 13;
startIndex = 14;
}
}