Skip to content

Commit 163dd4f

Browse files
author
Jackson Kearl
committed
Dont require steps to be defined
Fixes microsoft#141603
1 parent c0172e7 commit 163dd4f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedService.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ export class WalkthroughsService extends Disposable implements IWalkthroughsServ
308308

309309
const isNewlyInstalled = !this.metadata.get(categoryID);
310310
if (isNewlyInstalled) {
311-
this.metadata.set(categoryID, { firstSeen: +new Date(), stepIDs: walkthrough.steps.map(s => s.id), manaullyOpened: false });
311+
this.metadata.set(categoryID, { firstSeen: +new Date(), stepIDs: walkthrough.steps?.map(s => s.id) ?? [], manaullyOpened: false });
312312
}
313313

314314
const override = await Promise.race([
@@ -327,8 +327,7 @@ export class WalkthroughsService extends Disposable implements IWalkthroughsServ
327327
}
328328
}
329329

330-
331-
const steps = walkthrough.steps.map((step, index) => {
330+
const steps = (walkthrough.steps ?? []).map((step, index) => {
332331
const description = parseDescription(step.description || '');
333332
const fullyQualifiedID = extension.identifier.value + '#' + walkthrough.id + '#' + step.id;
334333

0 commit comments

Comments
 (0)