File tree Expand file tree Collapse file tree 8 files changed +11
-39595
lines changed
components/HearingsScheduled Expand file tree Collapse file tree 8 files changed +11
-39595
lines changed Original file line number Diff line number Diff line change 55/.pnp
66.pnp.js
77.yarn *
8+ package-lock.json
89
910# testing
1011/coverage
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export type EventData = {
1010 type : "hearing" | "session"
1111 name : string
1212 id : number
13- location : string
13+ location ? : string
1414 fullDate : Date // TODO: Could be a timestamp
1515 year : string
1616 month : string
@@ -132,7 +132,7 @@ export const EventCard = ({
132132 ) }
133133 </ p >
134134 < p className = { `lh-sm mb-3 ms-2 text-secondary` } >
135- { truncateEntry ( location ) }
135+ { truncateEntry ( location ?? "" ) }
136136 </ p >
137137 </ div >
138138 </ div >
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export const useCalendarEvents = () => {
4444 type : e . type ,
4545 name : e . content . Name ?? "Hearing" ,
4646 id : e . content . EventId ,
47- location : e . content . Location . LocationName ,
47+ location : e . content . Location ? .LocationName ?? undefined ,
4848 fullDate : eventDate . toJSDate ( ) ,
4949 year : date . year ,
5050 month : date . month ,
Original file line number Diff line number Diff line change @@ -54,12 +54,12 @@ export const Session = BaseEvent.extend({
5454} )
5555export type HearingLocation = Static < typeof HearingLocation >
5656export const HearingLocation = Record ( {
57- AddressLine1 : String ,
57+ AddressLine1 : Nullable ( String ) ,
5858 AddressLine2 : Nullable ( String ) ,
59- City : String ,
60- LocationName : String ,
61- State : String ,
62- ZipCode : String
59+ City : Nullable ( String ) ,
60+ LocationName : Nullable ( String ) ,
61+ State : Nullable ( String ) ,
62+ ZipCode : Nullable ( String )
6363} )
6464export type HearingContent = Static < typeof HearingContent >
6565export const HearingContent = BaseEventContent . extend ( {
Original file line number Diff line number Diff line change @@ -106,8 +106,8 @@ export const {
106106 year : schedule . year ,
107107 committeeCode : content . HearingHost ?. CommitteeCode ?? undefined ,
108108 committeeName : committeeName ?? undefined ,
109- locationName : content . Location ?. LocationName ,
110- locationCity : content . Location ?. City ,
109+ locationName : content . Location ?. LocationName ?? undefined ,
110+ locationCity : content . Location ?. City ?? undefined ,
111111 chairNames : hearing . committeeChairs ?? [ ] ,
112112 agendaTopics,
113113 billNumbers : dedupedBills . map ( bill => bill . number ) ,
You can’t perform that action at this time.
0 commit comments