title: Nested array last element in object gets deleted when pushed new object
body: <p>Please check the stackblitz.
  <a href="https://stackblitz.com/edit/timesheetgenerator?file=src/app/app.component.ts" rel="nofollow noreferrer">https://stackblitz.com/edit/timesheetgenerator?file=src/app/app.component.ts</a>
  Whenever a number divisible by 8 is entered after the value which is divisible by &quot;.5&quot; i.e [1.5,2.5 etc], the previous object array element gets deleted.
  To reproduce:
  1.click submit with input 12 hours
  2.you will see an object array in console
  <a href="https://i.stack.imgur.com/A4ecG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/A4ecG.png" alt="enter image description here" /></a>
  3.Enter 16 and submit in input, you will see the object as in image.</p>
  <p>So, here the 'last value in <strong>item</strong> array' in Object[0] is deleted when another object is pushed.</p>
  <p><strong>My Goal: Whenever a number is divisible by 8 with [1.5,2.5,3.5 ...etc], I would like to push them [2 times, 3 times, 4 times ..etc] into object array. But, when the number which is divisible by 8 is entered after this number, it deletes the last value in the array.</strong></p>
  <p>Thanks in advance.</p>