BallAerospace / COSMOS

Ball Aerospace COSMOS
https://ballaerospace.github.io/cosmos-website/
Other
360 stars 129 forks source link

TlmViewer: Named widgets do not appear to load after screen is modified [COSMOS 5.0.3] #1695

Closed jwestra-carrastro closed 2 years ago

jwestra-carrastro commented 2 years ago

When a user edits a telemetry screen in the Telemetry Viewer, either by using the built-in editor or uploading a new version of the file, JavaScript cannot find the 'text' property for named widgets. This error occurs in custom screens as well as in the demo screens.

The following error is raised when the user clicks on a button that tries to execute screen.get_named_widget("WIDGET_NAME").text(), where WIDGET_NAME is a TEXTFIELD widget: "TypeError: Cannot read properties of undefined (reading 'text')"

When the screen is closed and reopened by the user, the issue disappears.