79265962

Date: 2024-12-09 17:49:33
Score: 1
Natty:
Report link

I was able to figure out the issue. There was a section of my code where i was calling state and strigifying the JSON object, thus removing the actual function.

let options = JSON.parse(JSON.stringify(this.state.options));

I updated my code to remove the strigify:

let options = this.state.options

It's working as intended now.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: squidmonkey