mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
Merge branch 'tom/sb-512-angular-14' into tom/sb-606-migrate-stories-and-delete-angular-cli
This commit is contained in:
commit
c12536d770
@ -61,7 +61,7 @@ const cleanArgsDecorator: DecoratorFunction<AngularFramework> = (storyFn, contex
|
||||
const argType = context.argTypes[key];
|
||||
|
||||
// Only keeps args with a control or an action in argTypes
|
||||
if (argType.action || argType.control) {
|
||||
if (argType?.action || argType?.control) {
|
||||
return { ...obj, [key]: arg };
|
||||
}
|
||||
return obj;
|
||||
|
Loading…
x
Reference in New Issue
Block a user