How to embed a 360 image in HTML box from DB

Hello there,

i got a DB that has a dataset of a link (360 image link)


the link is to be shown at


as some properties we do not have their 360 image yet, some cell will be empty
thus i used the following code, but does not seem to be working

import wixData from 'wix-data';

$w.onReady( function () {

     $w("#dynamicDataset").onReady( () => {

 let currentItem = $w("#dynamicDataset").getCurrentItem();

        };
        console.log(currentItem.three60);
        // checking if there is a link (found okay)
        
 if (currentItem["three60"] === "")   // if it is empty collapse strip (did not work!)
            {
                $w("#columnStrip360").collapse();
            }
 else { // if it is not empty let HTML box = link (works!)
                $w("#html360").src = currentItem["three60"];
            }

    });
});

any help please

Try this:

if (!currentItem["three60"])   // if it is empty collapse strip 

or

if (!currentItem.three60)   // if it is empty collapse strip 

worked, thank you