moonwave
moonwave copied to clipboard
Empty [[classOrder]] classes array results in "Cannot read properties of undefined (reading 'label')"
When you set the very first [[classOrder]] of a collection of them to something with no class values, the page crashes as seen below.
( second image has auto redirect to very first module of the SECOND [[classOrder]] definition AFTER the first one has been commented out )
Fixes:
- ignore any classOrder without any class values in the array
- iterate sequentially over each [[classOrder]] from the top to bottom of the toml file and use whichever has at least one class value as the first redirect, and if none exist, have a default blank page.