S
S
Sergey Zolotarev2022-01-25 10:54:12
JavaScript
Sergey Zolotarev, 2022-01-25 10:54:12

How to solve the problem with the missing generated key with value in the JSON string?

Good day!
The screenshot itself with the essence of the question:
JKWGMRj.png

The problem is that when choosing a list value, it is not sent to the JSON string itself, generated by the script itself, and the rest of the values ​​\u200b\u200bare taken and thrown into the JSON itself without any problems.

What did I do wrong and how can I fix it?

Code examples:

  • React component with a problematic piece
  • JSON string generation and publishing function
  • A handler that fires when a value is selected from a select with a function to handle them

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question