You need to sign in to do that
Don't have an account?
SHAIK MOULALI369
ContactListController.js: ESLINT_ERROR
Getting an Error :
" Failed to save ContactListController.js: ESLINT_ERROR: {c:ContactList - CONTROLLER} line:col [7:23] --> Parsing error: Shorthand property assignments are valid only in destructuring patterns : Source "
my client side controller code :
({
doInit : function(component, event, helper) {
/* Step 1 */
var action = component.get('c.getContactList');
/* Step 2 */
action.setParams({
accountId = component.get('v.recordId'),
});
/* Step 4 */
action.setCallback(this, function(response){
var responseValue = response.getReturnValue();
console.log('responseValue', responseValue);
component.set('v.ContactList',responseValue)
}, 'SUCCESS');
/* Step 4 */
$A.enqueueAction(action, true);
}
})
Passing recordId(cmp class) to AccountId(Apex class), getting this error.
Kindly sugegst how to resolve this.
" Failed to save ContactListController.js: ESLINT_ERROR: {c:ContactList - CONTROLLER} line:col [7:23] --> Parsing error: Shorthand property assignments are valid only in destructuring patterns : Source "
my client side controller code :
({
doInit : function(component, event, helper) {
/* Step 1 */
var action = component.get('c.getContactList');
/* Step 2 */
action.setParams({
accountId = component.get('v.recordId'),
});
/* Step 4 */
action.setCallback(this, function(response){
var responseValue = response.getReturnValue();
console.log('responseValue', responseValue);
component.set('v.ContactList',responseValue)
}, 'SUCCESS');
/* Step 4 */
$A.enqueueAction(action, true);
}
})
Passing recordId(cmp class) to AccountId(Apex class), getting this error.
Kindly sugegst how to resolve this.
Greetings!
Please double check the variable "ContactList" is valid as this is case sensitive.Please refer the example which thrown the same error.
https://salesforce.stackexchange.com/questions/271128/eslint-error-parsing-error-unexpected-token-createcarrecord-source
Kindly mark it as best answer if it helps so that it can help others in the future.
Warm Regards,
Shirisha Pathuri