This commit is contained in:
Peter Clement 2025-01-28 11:24:46 +00:00
parent 987b3e83f4
commit b7dbe2e11c
1 changed files with 3 additions and 1 deletions

View File

@ -1160,11 +1160,12 @@ export const buildFormSchema = (component, asset) => {
* in the app.
*/
export const getAllStateVariables = (screen = null) => {
// Find all button action settings in all components
let assets = []
if (screen) {
// only include state variables from a specific screen
assets.push(screen)
} else {
// otherwise include state variables from all screens
assets = getAllAssets()
}
let eventSettings = []
@ -1219,6 +1220,7 @@ export const getAllStateVariables = (screen = null) => {
})
})
// Add on load settings from screens
if (screen) {
if (screen.onLoad) {
eventSettings.push(screen.onLoad)