If the length of the children is zero, some of the variables will be undefined, in addition, getting the length of an undefined variable raises an exception. So, we must handle this to prevent the app from crashing. (#75 and #102)
It can happen if the user wants to fetch in Nuxt-js. At the first time, there is no child and it leads to crash the app.
If the length of the children is zero, some of the variables will be
undefined
, in addition, getting thelength
of anundefined
variable raises an exception. So, we must handle this to prevent the app from crashing. (#75 and #102)It can happen if the user wants to
fetch
in Nuxt-js. At the first time, there is no child and it leads to crash the app.