79547274

Date: 2025-03-31 21:17:05
Score: 1
Natty:
Report link

In case anyone else runs into this, sparkJ's comment is correct. You need to replace (params) with (value, row) and use row to access the value. The correct valuegetter code should be:

valueGetter: (value, row) => {
              const today = new Date();
              if (Date.parse(row.effectiveStartDateEst) > today){
                return 'Inactive'
              }
              else{
                return 'Active'
              }
            }
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: JWillis