diff --git a/README.md b/README.md index a4b4259f..1535b60b 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,6 @@

Welcome to UX Remote LAB

-

UX Remote LAB is a user-friendly platform for usability testing and heuristic evaluation. Designed and provided by UX Remote LAB, it is a web application developed to assist project creators in gathering valuable insights from their users.

-
- -
- Read The Docs -
-
- Live Demo +

UX Remote LAB is a user-friendly platform for usability testing and heuristic evaluation. Designed and provided by UX Remote LAB, it is a web application developed to assist project creators in gathering valuable insights from their users.


diff --git a/src/components/molecules/OptionsTable.vue b/src/components/molecules/OptionsTable.vue index 3b723dd0..6c3f2553 100644 --- a/src/components/molecules/OptionsTable.vue +++ b/src/components/molecules/OptionsTable.vue @@ -128,6 +128,7 @@ export default { }, updateOptions() { if (this.editIndex == -1) { + this.option.timestamp = Date.now() // using the current timestamp as a unique identifier this.options.push(this.option) } else { Object.assign(this.options[this.editIndex], this.option) @@ -141,10 +142,13 @@ export default { this.hasValue = true }, deleteItem(item) { - this.options.splice(this.options.indexOf(item), 1) + const index = this.options.findIndex((option) => option.timestamp === item.timestamp) + if (index !== -1) { + this.options.splice(index, 1) + } }, editItem(item) { - this.editIndex = this.options.indexOf(item) + this.editIndex = this.options.findIndex((option) => option.timestamp === item.timestamp) this.option.text = this.options[this.editIndex].text this.option.value = this.options[this.editIndex].value