Console errors when using where notInArray

Wappler Version : 5.4.2
Operating System : mac
Server Model: node
Database Type:
Hosting Type:

Expected behavior

The tagify element should not generate dev console errors on load

Actual behavior

The following errors are generated:

How to reproduce

Use the following in a tagify data source expression:

get_site_person_profiles.data.person_profiles.where(`person_profile_id`, get_user_site_listings.data.brand_user_listings.values('person_profile_id'), 'notInArray')

The error has nothing to do with Tagify, seems that the where formatter is generating the error. It will be difficult for me to replicate, but from the error it looks like the get_user_site_listings.data.brand_user_listings.values('person_profile_id') part returns undefined. Please validate that that part is actually returing an array.

This can happen when that data is not yet loaded. I can add extra validation in the code to prevent the error and only show a warning in the console.

Sorry, should have added that the element does work, just generates the errors. And you are correct, it is a timing issue, the array is not yet ready.

This morning, I added a default and the errors go away:

dmx-bind:data="get_site_person_profiles.data.person_profiles.where(`person_profile_id`, get_user_site_listings.data.brand_user_listings.values('person_profile_id').default([]), 'notInArray')"