Skip to content

Commit 123eb93

Browse files
authored
Merge pull request #131 from SoCreate/fix/duplicate-sandboxed-components
fix sandboxed components being loaded twice
2 parents 77659d7 + e4a65a6 commit 123eb93

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

packages/angular-playground/core/src/scenario/scenario.component.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import {
2-
Component, Input, NgZone, NgModule, OnChanges, OnInit, SimpleChanges, NgModuleRef, Inject, OnDestroy
3-
} from '@angular/core';
1+
import { Component, Inject, Input, NgModule, NgModuleRef, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
42
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
53
import { SandboxLoader } from '../shared/sandbox-loader';
64
import { Scenario, SelectedSandboxAndScenarioKeys, Sandbox } from '../../lib/app-state';
@@ -41,10 +39,6 @@ export class ScenarioComponent implements OnInit, OnChanges, OnDestroy {
4139
this.middleware
4240
.pipe(takeUntil(this.onDestroy))
4341
.subscribe(middlewares => this.activeMiddleware = middlewares);
44-
45-
if (this.selectedSandboxAndScenarioKeys) {
46-
this.bootstrapSandbox(this.selectedSandboxAndScenarioKeys);
47-
}
4842
}
4943

5044
ngOnChanges(changes: SimpleChanges) {

0 commit comments

Comments
 (0)