From e4a65a6448a36cf5d662f6952c047217714c9110 Mon Sep 17 00:00:00 2001 From: Timothy Stoddard Date: Fri, 17 Aug 2018 08:54:07 -0700 Subject: [PATCH] fix sandboxed components being loaded twice --- .../core/src/scenario/scenario.component.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/angular-playground/core/src/scenario/scenario.component.ts b/packages/angular-playground/core/src/scenario/scenario.component.ts index 66b2532b..12ac60c7 100644 --- a/packages/angular-playground/core/src/scenario/scenario.component.ts +++ b/packages/angular-playground/core/src/scenario/scenario.component.ts @@ -1,6 +1,4 @@ -import { - Component, Input, NgZone, NgModule, OnChanges, OnInit, SimpleChanges, NgModuleRef, Inject, OnDestroy -} from '@angular/core'; +import { Component, Inject, Input, NgModule, NgModuleRef, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { SandboxLoader } from '../shared/sandbox-loader'; import { Scenario, SelectedSandboxAndScenarioKeys, Sandbox } from '../../lib/app-state'; @@ -41,10 +39,6 @@ export class ScenarioComponent implements OnInit, OnChanges, OnDestroy { this.middleware .pipe(takeUntil(this.onDestroy)) .subscribe(middlewares => this.activeMiddleware = middlewares); - - if (this.selectedSandboxAndScenarioKeys) { - this.bootstrapSandbox(this.selectedSandboxAndScenarioKeys); - } } ngOnChanges(changes: SimpleChanges) {