Having an Object array, I noticed that when I try to remove an object from the array list, only items are deleted from the end.
<div class="hours" v-for="(time, index) in hour" :key="index">
So, I decided to place a click function on an icon:
<b-icon
v-if="time.delete"
icon="x"
width="20"
height="20"
class="delete-time"
@click="deleteTime(index)"
></b-icon>
However, when attempting the deletion process:
methods: {
moment,
deleteTime(index) {
this.hour.splice(index, 1);
},