Skip to content

Commit

Permalink
refactor: setMapCenter implicit undefined argument
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Oct 3, 2024
1 parent 07f1a9d commit ccb3e39
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/src/api/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ export const logout = async () => {
currentUser.value = undefined;
currentProject.value = undefined;
clearState();
setMapCenter(undefined);
setMapCenter();
};
2 changes: 1 addition & 1 deletion web/src/components/map/Map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default {

onMounted(() => {
createMap();
setMapCenter(undefined);
setMapCenter();
});

return {
Expand Down
2 changes: 1 addition & 1 deletion web/src/storeFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function loadProjects() {
});
}

export function setMapCenter(project: Project | undefined) {
export function setMapCenter(project: Project | undefined = undefined) {
let center: [number, number] = [0, 30];
let zoom = 1;
if (project) {
Expand Down

0 comments on commit ccb3e39

Please sign in to comment.