Skip to content

Commit

Permalink
fix(ts): errors
Browse files Browse the repository at this point in the history
  • Loading branch information
plduthoit committed Nov 13, 2024
1 parent 597598f commit 005afcb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions vue/src/components/map/Map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ const props = withDefaults(defineProps<{
bounds: () => new maplibregl.LngLatBounds([8.48881554529, 1.72767263428], [16.0128524106, 12.8593962671])
})
const popup = ref(new maplibregl.Popup({ closeOnClick: false }));
const hoveredFeatureId: Ref<number | null> = ref(null)
const activeFeatureId: Ref<number | null> = ref(null)
const hoveredFeatureId: Ref<string | null> = ref(null)
const activeFeatureId: Ref<string | null> = ref(null)
onMounted(() => {
map.value = new maplibregl.Map({
Expand Down
2 changes: 1 addition & 1 deletion vue/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const router = createRouter({
beforeEnter: (to, from, next) => {
const projectStore = useProjectStore()
projectStore.isProjectMapFullWidth = to.query.type === ProjectListDisplay.MAP ? true : false
projectStore.activeProjectId = to.query.project ? +to.query.project : null
projectStore.activeProjectId = to.query.project ? to.query.project.toString() : null
next()
}
},
Expand Down
2 changes: 1 addition & 1 deletion vue/src/views/projects/ProjectListView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const sortOptions = Object.values(SortKey).map((key) => {
}
})
const setHoveredProject = (id: number) => {
const setHoveredProject = (id: string) => {
projectStore.hoveredProjectId = id
}
Expand Down

0 comments on commit 005afcb

Please sign in to comment.