Inputs are not retaining/saving the values typed

Hi all, I am currently experiencing an issue where part of my list is unable to save the input.

Firstly, I have an array named allItems, which is the combination of 2 arrays, items and newItems.
items is manually hard coded whereas newItems is retrieved from Firestore Firebase.

So for instance I type in 10 for keyboards and Ben’s Watch


However when I click done, it only saves the input for keyboard. Note that keyboard is part of the hardcoded array items.
image

What could be causing the issue?

I have a feeling that it might be caused by the retrieving of newItems array, constantly maintaining the quantity of the respective item.

Here is the code for the html portion: