Skip to content

Commit

Permalink
fix: remove args from context, issues
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed May 3, 2020
1 parent 9efcd6a commit 37fa1fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion integrations/storybook/src/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ addDecorator(
if (context.args !== undefined) {
//storybook-6 beta fake args
//@ts-ignore
return storyFn({ ...context, args: { ...context.args, ...values } });
return storyFn({ ...context, args: values });
}
//storybook 5 and 6 alphas
//@ts-ignore
Expand Down
6 changes: 3 additions & 3 deletions ui/blocks/src/PropsTable/PropsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,16 +182,16 @@ export const PropsTable: FC<PropsTableProps> = ({
}}
>
{Array.isArray(value) && value.length > 1
? value.map(({ name: typeName }) => (
? value.map(({ name: typeName, value }) => (
<Tag
key={`${name}_${typeName}`}
key={`${name}_${value || typeName}`}
color="grey"
transparentAmount={0.9}
sxStyle={{
mr: 1,
}}
>
{typeName}
{value || typeName}
</Tag>
))
: raw ?? typeName}
Expand Down

0 comments on commit 37fa1fb

Please sign in to comment.