You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Noticed this when Netlify Webhooks send a notification to a Discord channel. Discord will visit the site to fetch graph metadata, using Headless Chrome.
This leads to requesting the translation from the backend, which (sometimes) fails; that's something else I'm looking into. XHR-Backend returns true as data which leads to chained-backend triggering the save-callback because JS thinks Object.keys(true).length > -1 === true is fine.
Arghh...right....if (!err && data && Object.keys(data).length > -1) { should do the trick...if you like I would happy accept a PR...else I will try to add this sometime next week
Noticed this when Netlify Webhooks send a notification to a Discord channel. Discord will visit the site to fetch graph metadata, using Headless Chrome.
This leads to requesting the translation from the backend, which (sometimes) fails; that's something else I'm looking into. XHR-Backend returns true as
data
which leads to chained-backend triggering the save-callback because JS thinksObject.keys(true).length > -1 === true
is fine.So probably,
should be
Happy to create a PR if this is fine.
The text was updated successfully, but these errors were encountered: