From 79d8a8675ce8ed09b225c96c1c0478018d1c912c Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sun, 29 Oct 2023 12:18:13 -0700 Subject: [PATCH] metadata: reset state when invalidated Signed-off-by: Varun Patil --- src/components/Metadata.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Metadata.vue b/src/components/Metadata.vue index 4738e416..366fd0e3 100644 --- a/src/components/Metadata.vue +++ b/src/components/Metadata.vue @@ -385,11 +385,7 @@ export default defineComponent({ methods: { async update(photo: number | IPhoto): Promise { - this.state = Math.random(); - this.loading = 0; - this.error = false; - this.fileid = null; - this.exif = {}; + this.invalidate(); // which clusters to get const clusters = this.routeIsPublic @@ -424,7 +420,11 @@ export default defineComponent({ }, invalidate() { + this.state = Math.random(); + this.loading = 0; + this.error = false; this.fileid = null; + this.exif = {}; }, editDate() {