Storing Data in Array and Displaying it on a Table
We are trying to store the data temporarily in an array. However, when we are adding/saving the data, it is showing duplicates in the table.
- Data in the table is adp
For example, I added the first data, it will display 1 row on the table. If I will add the second data, it will display 3 rows on the table - 1 for the first data and 1 again for the first data, then 1 for the second data.
On the DevTools, it only shows 2 data, which is correct.
Could you please provide any insights or suggestions on why this might be happening? Any guidance or recommendations to resolve this issue would be greatly appreciated.
Tagged:
0