An error occurred in one of datasetReady callbacks - help needed

I’m new to Wix, so sorry in advance!

I am learning my way around datasets and trying to start slowly but hitting issues even so.

Here is my test code

$w.onReady(() => {
    $w('#MemberItem').onReady(() => {
        let MyItem = $w('#MemberItem').getCurrentItem();

        console.log(MyItem.ownStudio);

        if (MyItem.ownStudio != "No") {

            Console.log('Expand?');

            //     $w('#StudioDetails').expand();

        } else {
            console.log('dont expand');
        }

    })

    console.log('hello');
});

When I preview I get:

hello Individual Gallery Line 23
Yes Individual Gallery Line 9

UserError: An error occurred in one of datasetReady callbacks Caused by ReferenceError: Console is not defined
Caused by: ReferenceError: Console is not defined

I assume I’m doing something stupid, just like to know what!

Charly

ffs

Having looked at the code above where suddenly the second call to console.log is all red, I went back and retyped that in and now it works.

I’ll go crawl back in my shell and watch out for capital letters better.

1 Like