Justoverclock
Yes, you haven't run the migrations. The migrations create default settings.
What's happening is that the code is looking at your settings and copying the settings data to the component state. As the settings don't exist, it's setting the state values to undefined
when it expects a string instead. While .includes()
exists on strings in JS, it doesn't on undefined
objects.
If you're sure you've run the migrations, could you send a screenshot of the ads settings (type app.data.settings
in Console tab and screenshot the ones that start with davwheat-ads
).