diff --git a/adev/src/app/features/playground/playground.component.ts b/adev/src/app/features/playground/playground.component.ts index 00cf9ae474d..b5b3234c9db 100644 --- a/adev/src/app/features/playground/playground.component.ts +++ b/adev/src/app/features/playground/playground.component.ts @@ -87,6 +87,7 @@ export default class PlaygroundComponent implements AfterViewInit { async changeTemplate(template: PlaygroundTemplate): Promise { this.selectedTemplate = template; await this.loadTemplate(template.path); + await this.nodeRuntimeSandbox!.reset(); } private async loadTemplate(tutorialPath: string) {