[SalesForce] You might just need to refresh it. Assertion Failed!: Provider type not supported : false Failing descriptor

Iam facing following error with my code:

This page has an error. You might just need to refresh it.
Assertion Failed!: Provider type not supported : false
Failing descriptor: {c:Picklistversion2}

can anyone take a look into this :

<aura:component controller="Picklistverion2" implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" >

 <aura:attribute name="set" type="object"/>

 <div class="slds-text-body_regular">
  <aura:iteration items="{!v.set}" var ="d">        
 <lightning:input  label="Profile"  value="{!d.Name}" onchange="{!c. doInit}"/> 
              </aura:iteration>       
         </div>
</aura:component>

Controller function for this :

doInit: function(component, event, helper) {
  //call apex class method
  var action = component.get('c.PermissionSetLst');
  action.setCallback(this, function(response) {
   //store state of response
   var state = response.getState();
   if (state === "SUCCESS") {
    //set response value in ListOfAccount attribute on component.
    component.set('v.set', response.getReturnValue());
   }
  });
  $A.enqueueAction(action);
 }

my Class for this

public class Picklistverion2 {
     @AuraEnabled
    public static List<PermissionSet> PermissionSetLst()
    {
         return [SELECT Name FROM PermissionSet WHERE IsCustom = TRUE AND IsOwnedByProfile = FALSE];
    }        

}

I want my query output inside my lightning input so that after i''ll move ahead for further conditions

Best Answer

You are missing the init handler because of which the method is not invoking on init:

<aura:attribute name="set" type="object"/>
<aura:handler name="init" value="{!this}" action="{!c.doInit}" />

<div class="slds-text-body_regular">
    <aura:iteration items="{!v.set}" var ="d">        
        <lightning:input  label="Profile"  value="{!d.Name}" onchange="{!c. doInit}"/> 
    </aura:iteration>       
</div>
Related Topic