Skip to content

Commit

Permalink
Start storing uuid when saving the state.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-wu committed Dec 12, 2022
1 parent 775fd65 commit 21cea3e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/components/FlatmapVuer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -566,9 +566,15 @@ export default {
if (this.mapImp) {
let state = {
entry: this.entry,
biologicalSex: this.biologicalSex,
viewport: this.mapImp.getState()
};
const identifier = this.mapImp.getIdentifier();
if (this.biologicalSex)
state['biologicalSex'] = this.biologicalSex;
else if (identifier && identifier.biologicalSex)
state['biologicalSex'] = identifier.biologicalSex;
if (identifier && identifier.uuid)
state['uuid'] = identifier.uuid;
return state;
}
return undefined;
Expand Down Expand Up @@ -703,7 +709,10 @@ export default {
},
props: {
entry: String,
biologicalSex: String,
biologicalSex: {
type: String,
default: ""
},
featureInfo: {
type: Boolean,
default: false
Expand Down

0 comments on commit 21cea3e

Please sign in to comment.