Add default value for required props

This commit is contained in:
indigolain 2019-10-27 13:57:00 +09:00 committed by Norbert de Langen
parent 5c86314e50
commit 923572431c

View File

@ -128,7 +128,7 @@ class Mobile extends Component {
const { options } = props;
this.state = {
active: options.initialActive,
active: options.initialActive || 0,
};
}