Skip to content

Commit

Permalink
fix: update references to resetMap -> setMapCenter
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Sep 30, 2024
1 parent bba5b39 commit 74383fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/src/components/MainDrawerContents.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { ref, Ref, computed } from "vue";
import { availableProjects, currentProject, projectConfigMode } from "@/store";
import ProjectContents from "./ProjectContents.vue";
import { getCurrentMapPosition, resetMap } from "@/storeFunctions";
import { getCurrentMapPosition, setMapCenter } from "@/storeFunctions";
import { Project } from "@/types";
import { patchProject } from "@/api/rest";
Expand Down Expand Up @@ -38,7 +38,7 @@ export default {
}
return p;
});
resetMap(project);
setMapCenter(project);
saving.value = "done";
});
}
Expand All @@ -49,7 +49,7 @@ export default {
searchText,
saving,
openProjectConfig,
resetMap,
setMapCenter,
saveProjectMapLocation,
};
},
Expand Down Expand Up @@ -141,7 +141,7 @@ export default {
>
<v-card width="250">
<v-list selectable>
<v-list-item @click="resetMap(project)">
<v-list-item @click="setMapCenter(project)">
Go to project default map position
</v-list-item>
<v-list-item @click="saveProjectMapLocation(project)">
Expand Down

0 comments on commit 74383fb

Please sign in to comment.