I have a workshop app with 4 Object Lists that share an “Active Object” variable. It’s currently experiencing non deterministic behavior in the case where one of the object lists has one object and the others are empty - On loading the workshop, sometimes the active object will populate with the one object present, other times it will remain undefined/null. I’d like to ensure the former happense every time on load.
Is there a first-class pattern to avoid this?