Skip to content

derivative not able to read change in status of a cell #1492

Discussion options

You must be logged in to vote

Hi @shaunnthomas

One possible reason for this behavior could be that the row.status value is not exactly 'requested' when you are expecting it to be. It is possible that there are leading or trailing spaces in the row.status value, or the case of the string is different.

To ensure that the condition is properly checked, you can modify your code to trim the row.status value and convert it to lowercase before checking the condition.

Here's an updated version of your code with the modification:

const derivative: Derivative = async ({ row, db }) => {
  // Trim and convert row.status to lowercase
  const status = row.status.trim().toLowerCase();

  // Check if the status is 'requested'
  if (s…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Chadha93
Comment options

Answer selected by Chadha93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants