From 14f6080a30f76bbb0c04b0798a64eb057cf00e13 Mon Sep 17 00:00:00 2001 From: Max Sagan Date: Fri, 29 Mar 2019 13:32:52 +1100 Subject: [PATCH] Remove property alias --- .../storyshots-core/src/frameworks/angular/helpers.ts | 4 ++-- app/angular/src/client/preview/angular/helpers.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/storyshots/storyshots-core/src/frameworks/angular/helpers.ts b/addons/storyshots/storyshots-core/src/frameworks/angular/helpers.ts index ad2ff8aa5e2..3fb7131edd8 100644 --- a/addons/storyshots/storyshots-core/src/frameworks/angular/helpers.ts +++ b/addons/storyshots/storyshots-core/src/frameworks/angular/helpers.ts @@ -39,7 +39,7 @@ export const initModuleData = (storyObj: NgStory): any => { template, props, moduleMetadata = {}, - requiresComponentDeclaration: componentRequiresDeclaration = true, + requiresComponentDeclaration = true, } = storyObj; const isCreatingComponentFromTemplate = Boolean(template); @@ -49,7 +49,7 @@ export const initModuleData = (storyObj: NgStory): any => { : component; const componentDeclarations = - isCreatingComponentFromTemplate || componentRequiresDeclaration + isCreatingComponentFromTemplate || requiresComponentDeclaration ? [AppComponent, AnnotatedComponent] : [AppComponent]; diff --git a/app/angular/src/client/preview/angular/helpers.ts b/app/angular/src/client/preview/angular/helpers.ts index 63bcff52dd0..64648081301 100644 --- a/app/angular/src/client/preview/angular/helpers.ts +++ b/app/angular/src/client/preview/angular/helpers.ts @@ -53,7 +53,7 @@ const initModule = (storyFn: IStoryFn) => { props, styles, moduleMetadata = {}, - requiresComponentDeclaration: componentRequiresDeclaration = true, + requiresComponentDeclaration = true, } = storyObj; const isCreatingComponentFromTemplate = Boolean(template); @@ -63,7 +63,7 @@ const initModule = (storyFn: IStoryFn) => { : component; const componentDeclarations = - isCreatingComponentFromTemplate || componentRequiresDeclaration + isCreatingComponentFromTemplate || requiresComponentDeclaration ? [AppComponent, AnnotatedComponent] : [AppComponent];