From 04afb6490c44f7adee3110a3cb5dcae09beb24a2 Mon Sep 17 00:00:00 2001 From: David Callizaya Date: Wed, 6 Mar 2024 10:27:14 -0400 Subject: [PATCH] Fix page edit name validation rollback --- src/components/sortable/sortableList/SortableList.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/sortable/sortableList/SortableList.vue b/src/components/sortable/sortableList/SortableList.vue index 460e04a7f..18e044df7 100644 --- a/src/components/sortable/sortableList/SortableList.vue +++ b/src/components/sortable/sortableList/SortableList.vue @@ -105,9 +105,10 @@ export default { async onBlur(name, item) { if (this.validateState(name, item) === false) { this.newName = item.name; + } else { + // eslint-disable-next-line no-param-reassign + item.name = name; } - // eslint-disable-next-line no-param-reassign - item.name = name; await this.$nextTick(); setTimeout(() => { this.editRowIndex = null;