Skip to content

Commit

Permalink
Merge pull request #146 from Salesforce-org-Impact-Labs/lwc_Service_Reqs
Browse files Browse the repository at this point in the history
minor changes in service Recs and changing initial client email api n…
  • Loading branch information
AIrwin33 authored Jul 15, 2020
2 parents bfd50b6 + 6fb8f56 commit 76a1064
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<EmailTemplate xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>49.0</apiVersion>
<apiVersion>48.0</apiVersion>
<available>true</available>
<description>Initial message sent to client for a service referral - sent by text</description>
<encodingKey>ISO-8859-1</encodingKey>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,16 @@ export default class ServiceRecommendations extends LightningElement {
marker.description = result[i].Service.Description__c;
this.mapMarkers.push(marker);
}
if(result[i].Rating === undefined){
result[i].Rating = Math.floor(Math.random() * 6);
}

}

if(this.showRecommendations === false ){
this.showRecommendations = !this.showRecommendations;
}
window.console.log('showResult' + JSON.stringify(showResult));

showResult.sort((a,b)=>{

return (a.Relevance < b.Relevance) ? 1 : -1
})
this.unfilteredRecommendations = showResult;
this.returnRecommendations = showResult;
this.returnHiddenRecommendations = hiddenResult;
Expand Down

0 comments on commit 76a1064

Please sign in to comment.