Hi,
I have a problem with wixLocation() function. I’ve got an error that 'cannot find name wixLocation. But it shouldn’t be a name but a function, should it be?
My code and a picture:
export function overimage_click ( event ) {
console . log ( event . context . itemId );
**if** ( event . context . itemId === "abc-xyz-qrs..." ) {
wixLocation . to ( "/xyz" )
}
}
Any help will be appreciated. Thanks.