Skip to content

Commit

Permalink
fix: undefined option randomize
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed May 13, 2021
1 parent 1d7102b commit bf8e893
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion core/core/src/controls-randomize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export const randomizeData = (controls: ComponentControls): RandomizedData => {
}
return {
name,
value,
value: value === 'undefined' ? undefined : value,
};
}
default:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,16 @@ const data: Record<string, Record<string, VariantButtonProps>> = {
fontSize: 16,
icon: 'none',
iconSide: 'left',
iconSize: undefined,
padding: 'large',
},
'2': {
text: 'Drew Terry',
variant: undefined,
fontSize: 18,
icon: 'search',
iconSide: 'left',
iconSize: undefined,
padding: undefined,
},
'3': {
text: 'Anahi McLaughlin',
variant: undefined,
fontSize: 14,
icon: 'up-arrow',
iconSide: 'left',
Expand Down

0 comments on commit bf8e893

Please sign in to comment.