Skip to content

Commit

Permalink
fix type error for linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jedi-of-the-sea committed Nov 11, 2024
1 parent 1fdc33d commit 7f4dd1e
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/clients/dish/src/utils/denkmalSearchIntern.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,22 @@ import {
AddressSearchGetters,
AddressSearchState,
} from '@polar/plugin-address-search'
import { Feature, GeoJsonProperties, Geometry } from 'geojson'

export const denkmalSearchResult: SelectResultFunction<
AddressSearchState,
AddressSearchGetters
> = ({ commit }, { feature }) => {
> = (
{ commit },
{
feature,
}: {
feature: Feature<Geometry, GeoJsonProperties> & {
title: string
epsg?: string
}
}
) => {
feature.epsg = 'EPSG:25832'
commit('setChosenAddress', feature)
commit('setInputValue', feature.title)
Expand Down

0 comments on commit 7f4dd1e

Please sign in to comment.