Wizard: enable nav items properly in Edit mode

This commit is contained in:
Ondrej Ezr 2024-07-10 16:36:28 +02:00 committed by Klara Simickova
parent 549ef37ab7
commit 4044b9eba1
3 changed files with 69 additions and 1 deletions

View file

@ -200,7 +200,7 @@ const CreateImageWizard = ({ isEdit }: CreateImageWizardProps) => {
) => {
const isVisitRequired = true;
const hasVisitedNextStep = steps.some(
(step) => step.index > step.index + 1 && step.isVisited
(s) => s.index > step.index && s.isVisited
);
return (