[table].events update error

I'm trying to understand how I can fix this console error I'm getting on one of my tables.

When I examine the state of the table, the offersTable.events object doesn't have any item where the event key has a value of "update."

It doesn't seem to break any functionality, but it's happening across several tables on different apps, so I'd like to at least understand what's causing the error, if not fix it.

Doing some more digging through community posts, I think this is the answer. @bobthebear, tagging to confirm. Your reply there was very helpful and seems to suggest I should ignore these errors, in spite of how desperately I want an error-free console! :slight_smile:

Hey @eman31! You should be able to fix this using optional chaining. :slight_smile:

Somewhere in the configuration of your table you are likely executing a JS operation similar to obj.yt_channel_id. Imagine that, when the table first loads, obj doesn't yet exist. In order to take this into account, we can optionally access the yt_channel_id property only if obj exists. That's what obj?.yt_channel_id does.

I hope that helps!

It was a long hunt, but I finally found the culprits. Wish those errors were more accurate :woozy_face: Thanks @Darren !!

1 Like

Hi there! Sorry I didn't get back to ya, but I'm glad you got it all sorted out. you mentioned that you'd

like to at least understand what's causing the error

so if you're still wanting a more indepth look at what's going on in the background just let me know and i'll see what i can come up with

All good for now, ty @bobthebear :slight_smile:

2 Likes