File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
apps/web/src/routes/_app/datahub Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ const Filters: React.FC<{ table: TanstackTable.Table<Subject> }> = ({ table }) =
4141
4242 const columns = table . getAllColumns ( ) ;
4343
44- const dobColumn = columns . find ( ( column ) => column . id === 'date-of-birth ' ) ! ;
44+ const dobColumn = columns . find ( ( column ) => column . id === 'dateOfBirth ' ) ! ;
4545 const dobFilter = dobColumn . getFilterValue ( ) as DateFilter ;
4646
4747 const sexColumn = columns . find ( ( column ) => column . id === 'sex' ) ! ;
@@ -311,7 +311,7 @@ const MasterDataTable: React.FC<{
311311 id : 'subjectId'
312312 } ,
313313 {
314- accessorFn : ( subject ) => subject . dateOfBirth ,
314+ accessorKey : ' dateOfBirth' ,
315315 cell : ( ctx ) => {
316316 const value = ctx . getValue ( ) as Date | null | undefined ;
317317 return value ? toBasicISOString ( value ) : 'NULL' ;
@@ -327,8 +327,7 @@ const MasterDataTable: React.FC<{
327327 }
328328 return true ;
329329 } ,
330- header : t ( 'core.identificationData.dateOfBirth.label' ) ,
331- id : 'date-of-birth'
330+ header : t ( 'core.identificationData.dateOfBirth.label' )
332331 } ,
333332 {
334333 accessorFn : ( subject ) => subject . sex ?? null ,
@@ -358,7 +357,7 @@ const MasterDataTable: React.FC<{
358357 value : [ 'MALE' , 'FEMALE' , null ] satisfies SexFilter
359358 } ,
360359 {
361- id : 'date-of-birth ' ,
360+ id : 'dateOfBirth ' ,
362361 value : {
363362 allowNull : true ,
364363 max : null ,
You can’t perform that action at this time.
0 commit comments