Skip to content

Commit

Permalink
Merge pull request #28415 from storybookjs/valentin/fix-prod-mode
Browse files Browse the repository at this point in the history
Angular: Fix enableProdMode setting
  • Loading branch information
valentinpalkovic authored Jul 3, 2024
2 parents 67d9c5b + a61d756 commit 0c09887
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,6 @@ export abstract class AbstractRenderer {
// Observable to change the properties dynamically without reloading angular module&component
protected storyProps$: Subject<ICollection | undefined>;

constructor() {
if (typeof NODE_ENV === 'string' && NODE_ENV !== 'development') {
try {
// platform should be set after enableProdMode()
enableProdMode();
} catch (e) {
console.debug(e);
}
}
}

protected abstract beforeFullRender(domNode?: HTMLElement): Promise<void>;

/**
Expand Down

0 comments on commit 0c09887

Please sign in to comment.