Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
arthaud-proust committed Oct 19, 2023
1 parent b762b4b commit be760b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/js/Components/Map/MapContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const props = defineProps<{
const emit = defineEmits<{
clickMap: [e: MapBrowserEvent],
clickFeature: [feature: ol.Feature],
clickFeature: [feature: Feature],
}>();
const vectorLayer = new VectorLayer();
Expand Down Expand Up @@ -70,7 +70,7 @@ onMounted(() => {
})
if (feature) {
emit('clickFeature', feature as unknown as ol.Feature);
emit('clickFeature', feature as unknown as Feature);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion resources/js/Pages/Parchments/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const features = props.parchments.map(parchment => new Feature({
}
}))
function handleClickFeature(feature) {
function handleClickFeature(feature: Feature): void {
const parchmentId = feature.get('data').parchmentId;
router.visit(route('parchments.show', parchmentId))
Expand Down

0 comments on commit be760b7

Please sign in to comment.