# List modification issue

**URL:** <https://community.thunkable.com/t/list-modification-issue/293055>\
**Category:** Questions about Thunkable X\
**Created:** [October 28, 2019, 11:26pm UTC](https://community.thunkable.com/t/list-modification-issue/293055 "2019-10-28T23:26:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joshuariley](https://avatars.discourse-cdn.com/v4/letter/j/a587f6/32.png) [@joshuariley](https://community.thunkable.com/u/joshuariley)\
**Post date:** [October 28, 2019, 11:26pm UTC](https://community.thunkable.com/t/list-modification-issue/293055/1 "2019-10-28T23:26:00Z")

</div>

I’m stuck on this piece of code that I’ve written:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/4/d4e5d1aefe771ad169ef2d4e725505cb51219dc9.png)  
I’ve debugged each variable and it’s correct it just doesn’t replace the item in the list, the ID is correct, the new JSON object value is correct and the JSON List array is correct too

Project available on request

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [October 29, 2019, 8:52am UTC](https://community.thunkable.com/t/list-modification-issue/293055/2 "2019-10-29T08:52:58Z")

</div>

1. You use global variables when working with objects - to me it is not pleasant. The fact that the blocks of global variables become unstable and instead I recommend using parameters of variables of the function.

2. Do you believe that a new option is added to the list?

3. Loop through the list of objects in a **stored** - not a good idea.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:08pm UTC](https://community.thunkable.com/t/list-modification-issue/293055/3 "2024-11-08T12:08:31Z")

</div>


