Problem with a connection to WIX DB after transferring a domain from Wix to namecheap

I have a website that using DB and code in Wix.

In this website i’m using the following code to extract data from DB:
let item = $w(’ #dynamicDataset ').getCurrentItem();
let imagePath = item.imageLogo;

This code was working fine until i transfer the domain of this website from Wix to NameCheap.

I don’t understand what is the connection between these 2 things but the problem occurred right after the transfer took place.

Any idea why? maybe something with the URL’s of the images in the DB?

Try console logging the entire item to see the entire item

The Item is null.

@_oren Can you screenshot that portion of the code. Is it under the dataset’s onReady or the page’s onReady function?

@shantanukumar847 Sure

@_oren okay try the below

$w.onReady(function () {
   $w("#dynamicDataset").onReady( () => {
      let item = $w("dynamicDataset").getCurrentItem();
      console.log(item);
   });
});

@shantanukumar847 It’s working!!

Thanks :slight_smile: