Local Editor does not load database entries

Hi!

we have a site set up that works fine in the online editor, but not in the local editor. We need the local editor to collaboratively edit a website.

Everything seems fine, but the data we normally pull via JavaScript from our databases does not get shown.

We used functions like these:

export function recommendedProducts_itemReady($item, itemData, index) {
$item( ‘#name’ ).text = itemData.productName;
}

Can anyone help?