From 37881b36b43e3635f559c9efc459ca9b744a0c7a Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Wed, 10 Jan 2024 15:53:07 -0800 Subject: [PATCH] face-edit: fix back button (fix #994) Signed-off-by: Varun Patil --- src/components/modal/FaceEditModal.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/modal/FaceEditModal.vue b/src/components/modal/FaceEditModal.vue index 0d6d14ab..c218ab6b 100644 --- a/src/components/modal/FaceEditModal.vue +++ b/src/components/modal/FaceEditModal.vue @@ -93,12 +93,11 @@ export default defineComponent({ await dav.faceRecognitionRenamePerson(this.name, this.input); } - this.$router.replace({ + await this.close(); + await this.$router.replace({ name: this.$route.name as string, params: { user: this.user, name: this.input }, }); - - this.close(); } catch (error) { console.log(error); showError(