馃悰 Getting and setting a falsy value of a property is resulting in an error
Summary
In scenic, when we use the PropertyAPI.get
method to get values for properties with "falsy" values (empty string, 0, false etc.), the API rejects with an error.
How to reproduce ?
From Scenic
- Launch scenic with swio and create a video monitor quiddity
- Open the property drawer of the quiddity
- Click on overlay configuration
- switch the button to on (no error is dislayed in the console)
- switch off the button (an error is displayed in the console)
error: "Failed to set property Window/show_overlay of 9"
level: 50
msg: "Failed to set a new property value"
property: "Window/show_overlay"
quiddity: 9
store: "PropertyStore"
time: 1669652499298
value: false
Expected behavior
Falsy values of properties are supposed to be fetched and set without errors.
What is the frequency of occurrence of this behavior ?
100%
Other comment
For more details see scenic issue 339
Edited by Pascale Stark