Fix open walkthrough command for selecting a specific step (#206909)

This commit is contained in:
Bhavya U 2024-03-05 11:41:24 -08:00 committed by GitHub
parent e3e0fe00a3
commit 8374b219a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ registerAction2(class extends Action2 {
if (walkthroughID) {
const selectedCategory = typeof walkthroughID === 'string' ? walkthroughID : walkthroughID.category;
const selectedStep = typeof walkthroughID === 'string' ? undefined : walkthroughID.step;
const selectedStep = typeof walkthroughID === 'string' ? undefined : walkthroughID.category + '#' + walkthroughID.step;
// We're trying to open the welcome page from the Help menu
if (!selectedCategory && !selectedStep) {

View file

@ -1159,7 +1159,7 @@ export class GettingStartedPage extends EditorPane {
this.editorInput.selectedCategory = categoryID;
this.editorInput.selectedStep = stepId;
this.currentWalkthrough = ourCategory;
this.buildCategorySlide(categoryID);
this.buildCategorySlide(categoryID, stepId);
this.setSlide('details');
});
}