mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 13:01:07 +08:00
Add default value for required props
This commit is contained in:
parent
5c86314e50
commit
923572431c
@ -128,7 +128,7 @@ class Mobile extends Component {
|
||||
|
||||
const { options } = props;
|
||||
this.state = {
|
||||
active: options.initialActive,
|
||||
active: options.initialActive || 0,
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user