function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
lakshmi ch 10lakshmi ch 10 

ESLINT ERROR in contoller.js file

Hi all,

I am trying to save controller.js file,then i am getting the following error.Can any one help me to solve this.User-added image
Any valuble suggestions.
Alisha Mehta 9Alisha Mehta 9
Hi Lakshmi,

This is becaus eyou are suing cmp.getEvent in line 7 but have not passed it as a parameter.
Update line 3 to -
myfireComponentEvent : function(cmp, event)