setFilter working in preview but not live

I’m facing the same issue now. I am using a repeater to show some destinations. If a visitor clicks on “View Map” button, the lightbox opens with a map of the place and direction link. It is working perfectly fine while previewing, but not when viewing it live. What can have gone wrong?

let desc ; (global variable)

export function icoOpenMap_click ( event ) {
let $item = $w . at ( event.context );
desc = $item ( ‘#txtTitle’ ). text ;
wixWindow . openLightbox ( ‘ViewMap’ , desc );
}

In the lightbox page:
import wixWindow from ‘wix-window’ ;
import wixData from ‘wix-data’
import wixLocation from ‘wix-location’ ;
let receivedData = wixWindow.lightbox . getContext ();
$w . onReady ( function () {
$w ( “#dataset1” ). setFilter ( wixData . filter ()
. eq ( “title” , receivedData )
);
});