updateOne after changing tag reverting to old value with new table

Whenever I change the tag and save, the old value is being updated again.

I tried using below code as well, but it doesn't work. What am I missing here?

{
  "$set": 
    {
      "approval_status":{{companiesList.selectedRow.manageStatus}}
    }
}

Here is my dashboard screenshot.

Hi @anirudh_maddy Thanks for reaching out! The selectedRow is the initial data before editing; it has no information about edits a user has made to the cells. You'll want to use the changeset which stores the edits. More info in this post and our docs!

Also, I can't tell if you've done this from your screenshot, but once you refactor the handleStatus query to use the changeset, you'll want to make sure it's set up to re-trigger your table query on success