Skip to content

0.5.10 — fix the blank settings page

Choose a tag to compare

@mattg8892 mattg8892 released this 23 Aug 23:45
· 2 commits to main since this release

0.5.9 blanked the settings page. Fixed.

The heater duration picker passed <option> children to the shared Select, which takes an options array and calls options.map(...). undefined.map throws during render, React unmounts everything, and the page goes black with the reason only in the browser console.

Fixed

  • The duration picker calls Select correctly. Everything in 0.5.9 works as described.

Guarded

This is the third blank screen of this kind, and the existing guard could not catch it — Select was imported and did exist, so "every component used is defined" was satisfied. The call was wrong, not the identity.

Now: any component exported from ui.jsx that dereferences a prop without guarding it must be passed that prop at every call site. Verified by restoring the 0.5.9 call and watching the test fail.