DEV Community

Catur Hidayat
Catur Hidayat

Posted on

[ASK] WHY Always the first data to be updated?

I created a function to update data.
but for some reason, every time I update the data to the 2nd, 3rd and so on. The updated data is always the first data.

here is my code :

movie.js — ~devProjectexpressProject 2021-06-02 at 8.46.30 PM

Case :

First App 2021-06-02 at 8.46.01 PM

Where is my mistake??
Please Help

Top comments (0)