Coded-component does not run action

Hi!

I am not sure why this stopped working, but it suddenly has. When someone clicks on the point on a graph I want an action to run. Like this:

appfarm.actions.openLabelDialog({
              point: e.point
})

Now when I click the point, nothing happens. I have tried some debugging.

This does not log anything to the console:

appfarm.actions.openLabelDialog()
  .then(() => console.timeEnd('done'))
  .catch(console.error)

This logs “Click Start” and “Click bottom” to the console.

console.log("Click start")
appfarm.actions.openLabelDialog({
    point: e.point,
})
    .then(() => console.log('Action Performed'))
    .catch(console.error);
console.log('Click bottom')

It works when I try to run the code in a different coded component.

The container in which the coded component was placed was accidentally disabled. Consequently, the coded component appeared to be malfunctioning.

//Erik