Skip to content

Commit

Permalink
Removed filtering for nevenadres
Browse files Browse the repository at this point in the history
  • Loading branch information
remyvdwereld committed Sep 30, 2024
1 parent 001a3e0 commit 46c195a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
export const getAddressFromBagPdokResponse = (data?: BAGPdokResponse): BAGPdokAddress | undefined => {
const docs = data?.response?.docs
return (
docs?.find((result) => result.adrestype === "hoofdadres")
)
return docs && docs[0] ? docs[0] : undefined
}
5 changes: 1 addition & 4 deletions src/app/components/search/SearchResults/columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ const columns = [
{
header: "Adres",
dataIndex: "weergavenaam",
minWidth: 100,
render: (adres: any, obj: any) => (
`${ adres } ${ obj.adrestype === "nevenadres" ? "(Nevenadres)" : "" }`
)
minWidth: 100
},
{
dataIndex: "adresseerbaarobject_id",
Expand Down

0 comments on commit 46c195a

Please sign in to comment.