-
Hi!
The widget is not shown, and ags does not crash. I have no idea on what may be the cause of the error. Do you have any idea? thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I'm guessing your ags version is a bit out of date. In javascript class methods are not bound to instances, but in 1.7.5 they were converted into fat arrow functions // pre 1.7.5, query function loses its `this` context
const { query } = await Service.import('applications')
// solve this by
const apps = await Service.import('applications')
const query = apps.query.bind(apps) or update ags |
Beta Was this translation helpful? Give feedback.
I'm guessing your ags version is a bit out of date. In javascript class methods are not bound to instances, but in 1.7.5 they were converted into fat arrow functions
or update ags