From eb73cee93982c424a2ab3c10d4a21d8ad6cdf9dc Mon Sep 17 00:00:00 2001 From: alan-wu Date: Fri, 5 Jan 2024 17:26:14 +1300 Subject: [PATCH] Fix an issue with state not being reset. --- src/components/MapContent.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/MapContent.vue b/src/components/MapContent.vue index eb7a8d10..fa71805e 100644 --- a/src/components/MapContent.vue +++ b/src/components/MapContent.vue @@ -176,7 +176,7 @@ export default { this.$refs.flow.setState(currentState); //Do not create a new entry, instead set the multiflatmap viewer //to the primary slot - this.$refs.flow.setIdToPrimarySlot(entry.id); + this.$refs.flow.setIdToPrimaryPane(entry.id); break; } } @@ -241,7 +241,7 @@ export default { EventBus.$on("updateShareLinkRequested", () => { this.$emit("updateShareLinkRequested"); }); - if (!this.state && this.startingMap !== "AC" ) { + if (!this.state) { this.initialState = await initialState(this.startingMap, this.options.sparcApi); } this.isReady = true;