From 66f6a92b39442175f0d6fa0c2c0cea4a3c08bd95 Mon Sep 17 00:00:00 2001 From: Sanja Date: Wed, 3 Jul 2024 15:22:09 -0700 Subject: [PATCH] Prevent overwriting existing this.selectListOptions object properties by using Object.assign instead of this.$set --- src/components/FormSelectList.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/FormSelectList.vue b/src/components/FormSelectList.vue index 6f22011..26ba1b2 100644 --- a/src/components/FormSelectList.vue +++ b/src/components/FormSelectList.vue @@ -261,7 +261,7 @@ export default { updateOption(updatedValue) { const index = this.selectListOptions.findIndex((option) => option.id === updatedValue.id); if (index !== -1) { - this.$set(this.selectListOptions, index, updatedValue); + Object.assign(this.selectListOptions[index], updatedValue); } }, /**