Skip to content

Commit

Permalink
Fix lowercase compare
Browse files Browse the repository at this point in the history
  • Loading branch information
tschug committed Nov 5, 2023
1 parent b9e6510 commit 1163a0c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions force-app/main/default/lwc/indicatorBundle/indicatorBundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,11 +210,13 @@ export default class IndicatorBundle extends LightningElement {
if(extension.IsActive){

let match = false;
let fieldValue = dataValue; // TODO: This fails for numeric: .toLowerCase();
let compareValue = extension.ContainsText; // .toLowerCase();

// If the extension uses a String search, check if there is a match
if(compareValue) {
if(extension.ContainsText) {

let fieldValue = dataValue.toLowerCase();
let compareValue = extension.ContainsText.toLowerCase();

// console.log('Value',dataValue + ' ' + extension.TextOperator + ' ' + compareValue); // Retain for debug purposes
if(extension.TextOperator === 'Contains'){
match = fieldValue.includes(compareValue);
Expand Down

0 comments on commit 1163a0c

Please sign in to comment.