# Interactive Task List Items are not saved correctly

**URL:** https://discourse.notenik.app/t/interactive-task-list-items-are-not-saved-correctly/369
**Category:** Bug Reports
**Created:** [December 8, 2023, 10:10pm UTC](https://discourse.notenik.app/t/interactive-task-list-items-are-not-saved-correctly/369 "2023-12-08T22:10:42Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Malcolm](https://discourse.notenik.app/letter_avatar_proxy/v4/letter/m/e19b73/32.png) [@Malcolm](https://discourse.notenik.app/u/Malcolm)
#### Post date: [December 8, 2023, 10:10pm UTC](https://discourse.notenik.app/t/interactive-task-list-items-are-not-saved-correctly/369/1 "2023-12-08T22:10:42Z")

</div>

This bug seems to affect items on the end of a task list. It doesn’t seem to affect very short lists. Lists of less than ten items seem to work. Once you have a list of ten or more, the save becomes random.

It’s easy to see in action. Edit a list of ten or more items in display mode and Save the note.

Here is an example of user input before saving on the left, and the data stored by the save on the right. Of course, any action that triggers a save, such as going into edit mode, or switching to a different note, will produce the change.

 ![userInputs](https://discourse.notenik.app/uploads/db0641/original/1X/f7791ed7c780e4fb4dafef87591b64dd8bfd72e4.jpeg) ![savedData](https://discourse.notenik.app/uploads/db0641/original/1X/4a0e8ecbc9e8ead75f7c021c0f5ec527abbaf193.jpeg)

---

<div class="post-metadata">

### Author: ![hbowie](https://discourse.notenik.app/user_avatar/discourse.notenik.app/hbowie/32/6_2.png) [@hbowie](https://discourse.notenik.app/u/hbowie)
#### Post date: [December 8, 2023, 10:12pm UTC](https://discourse.notenik.app/t/interactive-task-list-items-are-not-saved-correctly/369/2 "2023-12-08T22:12:39Z")

</div>

Thanks for reporting this! Let me look into it.

---

<div class="post-metadata">

### Author: ![hbowie](https://discourse.notenik.app/user_avatar/discourse.notenik.app/hbowie/32/6_2.png) [@hbowie](https://discourse.notenik.app/u/hbowie)
#### Post date: [December 9, 2023, 7:26pm UTC](https://discourse.notenik.app/t/interactive-task-list-items-are-not-saved-correctly/369/3 "2023-12-09T19:26:14Z")

</div>

Check out the [latest beta](https://discourse.notenik.app/t/beta-version-13-5-4-available-for-testing-on-december-9th-2023/371) and let me know if this works better.

BTW, this was a weird problem where an integer value was somehow being corrupted when being passed from Javascript to the Apple Swift APIs. I changed the integer to a string on the JavaScript side, and then converted it back to an integer on the Swift side, and then everything seemed to work correctly.

---

<div class="post-metadata">

### Author: ![Malcolm](https://discourse.notenik.app/letter_avatar_proxy/v4/letter/m/e19b73/32.png) [@Malcolm](https://discourse.notenik.app/u/Malcolm)
#### Post date: [December 9, 2023, 7:37pm UTC](https://discourse.notenik.app/t/interactive-task-list-items-are-not-saved-correctly/369/4 "2023-12-09T19:37:28Z")

</div>

Tests are all positive. 💯

So we identified a bug that is buried a few layers deeper than your code. Interesting.
