I had a legacy custom component working fine. I disappear for a weeks leave, come back, and the model is not passing properly. The query runs fine, the query shows in the model, but the model is not passing this correctly to the component.
Model:
{
markers: {{ GetSchemesForMap.data }}
}
(I hover over the {{ }} and it correctly shows data.
This is how I am getting the model:
let markers;
let allCoords = ;
window.Retool.subscribe(function (model) {
markers = model.markers;
});
When I console.log(model) is it always undefined, even after running the query again.
I assumed this was because at the start, the model was empty, so I tried doing an if(model?.markers) {} and it never ran that condition.