Skip to content

Fix the Add-Ons page save never completing - #67

Open
djGLiTCH wants to merge 1 commit into
Podbod12:mainfrom
djGLiTCH:20260811-fix-addons-save
Open

Fix the Add-Ons page save never completing#67
djGLiTCH wants to merge 1 commit into
Podbod12:mainfrom
djGLiTCH:20260811-fix-addons-save

Conversation

@djGLiTCH

Copy link
Copy Markdown

On the current branch head, saving the Add-Ons Configuration page silently
does nothing: onSuccess in www/src/Pages/AddonsConfigPage.tsx uses
valuesSchema but its declaration is missing (it looks like a merge dropped
the line), so submitForm() throws ReferenceError: valuesSchema is not defined before setAddonsOptions is ever called, and the error is
swallowed - no request, no toast.

This restores the cast, matching what main does at the same spot. Verified
against a live board (Haute42 COSMOX M Ultra Gen 2 and B16 running
this branch): before, clicking Save produced the ReferenceError and no
network traffic; after, Save posts setAddonsOptions and the board
acknowledges and persists.

Found while porting the Host Lighting add-on
(OpenStickCommunity#1691) onto this branch - the LED refactor,
OpenStickCommunity#1514 - for compatibility testing.

The onSuccess handler compares submitted values against stored data via
valuesSchema, but the declaration was lost in a merge, leaving only its
use. Every Save click throws ReferenceError inside submitForm() before
setAddonsOptions is called, and the error is swallowed, so the Save
button silently does nothing. Restore the cast of the submitted values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant