mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 08:01:20 +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;
|
const { options } = props;
|
||||||
this.state = {
|
this.state = {
|
||||||
active: options.initialActive,
|
active: options.initialActive || 0,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user