Skip to content

Fix update not working bug#161

Open
Lloyd26 wants to merge 1 commit into
TuomoKu:masterfrom
Lloyd26:fix-update
Open

Fix update not working bug#161
Lloyd26 wants to merge 1 commit into
TuomoKu:masterfrom
Lloyd26:fix-update

Conversation

@Lloyd26
Copy link
Copy Markdown

@Lloyd26 Lloyd26 commented Mar 13, 2026

Currently, clicking the update button in SPX Solo v.1.4.0 does nothing as it does not update the template. This bug is not present in v.1.3.0.

The bug is fixed by setting the default value of projectFormat from 'OGRAF' to 'SPX'. Prior to this change, it will call updateItem(), but it will result into an error since document.getElementById('datafile') is null. Updating in SPX format doesn't need to call updateItem() as it will call the template's own update handler function, which fixes the problem.

Additionally, I noticed through observation that the default value of projectFormat in case 'nextTemplate' and case 'stopTemplate' is set to 'SPX', so I also set the default value in case 'updateTemplate' to 'SPX', and the problem is fixed.

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