Skip to content

Commit

Permalink
Merge pull request #1118 from hackclub/remove-id
Browse files Browse the repository at this point in the history
  • Loading branch information
taciturnaxolotl authored Jan 19, 2025
2 parents 791208d + 6e212c0 commit 61aa91b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/app/harbor/tavern/map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function TavernMarkers(props: MapProps) {

return (
<Marker
key={t.id}
key={t.coordinates}
position={
t.coordinates.split(', ').map((c) => Number(c)) as LatLngExpression
}
Expand Down Expand Up @@ -166,7 +166,7 @@ function TavernMarkers(props: MapProps) {

return (
<Marker
key={e.id}
key={e.city}
position={[geocodeObj.o.lat, geocodeObj.o.lng]}
icon={icon}
zIndexOffset={20}
Expand Down
4 changes: 0 additions & 4 deletions src/app/harbor/tavern/tavern-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ Airtable.configure({

type RsvpStatus = 'none' | 'organizer' | 'participant'
export type TavernPersonItem = {
id: string
status: RsvpStatus
coordinates: string
}
export type TavernEventItem = {
id: string
city: string
geocode: string
organizers: string[]
Expand All @@ -40,7 +38,6 @@ export const getTavernPeople = async () => {
.all()

const items = records.map((r) => ({
id: r.id,
status: r.get('tavern_rsvp_status'),
coordinates: r.get('tavern_map_coordinates'),
})) as TavernPersonItem[]
Expand All @@ -63,7 +60,6 @@ export const getTavernEvents = async () => {
.all()

const items = records.map((r) => ({
id: r.id,
city: r.get('city'),
geocode: r.get('map_geocode'),
organizers: r.get('organizers') ?? [],
Expand Down

0 comments on commit 61aa91b

Please sign in to comment.