Skip to content

Commit

Permalink
Fix an issue with state not being reset.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-wu committed Jan 5, 2024
1 parent 28d9d39 commit eb73cee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MapContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit eb73cee

Please sign in to comment.