Thanks and regards
@wire(fetchRecord, {searchKey:'$searchKey', selectedLabel:'$selectedLabel'})recorddetails;
3 answers
find out const searchKey = event.target.value;//this.template.querySelector('lightning-input').value; this.searchKey = searchKey; this.parentId1 = JSON.stringify(this.recorddetails.data); this.parentId1 = JSON.parse(this.parentId1.trim())//this.parentId1.trim(); this.parentId = this.parentId1[0].Id; console.log('this.parentId---->', this.parentId);