Skip to main content
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.
1 resposta
0/9000