moonwave icon indicating copy to clipboard operation
moonwave copied to clipboard

Empty [[classOrder]] classes array results in "Cannot read properties of undefined (reading 'label')"

Open SPOOKEXE opened this issue 1 year ago • 0 comments

When you set the very first [[classOrder]] of a collection of them to something with no class values, the page crashes as seen below.

image

image

( 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.

SPOOKEXE avatar Nov 17 '23 12:11 SPOOKEXE