We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44cbed2 commit 2cda5bdCopy full SHA for 2cda5bd
src/index.js
@@ -244,7 +244,9 @@ export default class extends Component {
244
}
245
246
// Support Optional render page
247
- initState.children = props.children.filter(child => child)
+ initState.children = Array.isArray(props.children)
248
+ ? props.children.filter(child => child)
249
+ : props.children
250
251
initState.total = initState.children ? initState.children.length || 1 : 0
252
0 commit comments