Skip to content

Commit

Permalink
fix: number default value
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jul 31, 2020
1 parent db57543 commit 11dc062
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion core/store/src/serialization/transform-controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const transformControls = (
const value = storyControls[key];
if (typeof value === 'string') {
control = { type: ControlTypes.TEXT, value };
} else if (typeof value === 'string') {
} else if (typeof value === 'number') {
control = { type: ControlTypes.NUMBER, value };
} else if (typeof value === 'object' && value instanceof Date) {
control = { type: ControlTypes.DATE, value };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ numeric, values between 10 and 75 allowed
`,
label: 'Age',
value: 19,
defaultValue: null,
min: 10,
max: 75,
},
Expand Down

0 comments on commit 11dc062

Please sign in to comment.