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
Kerry ProkselKerry Proksel 

Lightning Component to show Assets on Account

I am trying to create a lightning component on the account record that shows active assets for that account. For some reason, it is showing me ALL assets on ALL account records. I followed the trailhead and got this to work for contacts, but not assets. 

Here is my class:
public class MyAssetListController {
    @AuraEnabled
    public static List<Asset> getAssets(Id recordID) {
        return [Select Id, Name, IsActive__c
        From Asset 
        Where (IsActive__c = TRUE) 
        AND AccountId = :recordID];
    }
}