Legacy Custom Component - Broken in one week

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.

Hi @FloodMatt,

Are you able to share the full iframe code inside your custom component?

I'd be willing to help debug this with you.

1 Like

I've gone to it today, and it's now working absolutely fine. Very strange.

1 Like

Don't hesitate to let us know if you notice any odd behavior in the future!