Skip to content

Commit

Permalink
Update packages/components/src/AppGuidedTour/AppGuidedTour.component.js
Browse files Browse the repository at this point in the history
Co-authored-by: Alexandre Amalric <119614409+aamalric-talend@users.noreply.github.com>
  • Loading branch information
hbhong and aamalric-talend committed May 20, 2024
1 parent 29dfd10 commit 403299c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function AppGuidedTour({
setIsAlreadyViewed(true);
if (importDemoContent) {
setImportDemoContent(false);
setCurrentStep(currentStep - 1);
setCurrentStep(Math.max(0, currentStep - 1));
}
}}
steps={[
Expand Down

0 comments on commit 403299c

Please sign in to comment.