File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
apps/web/src/routes/_app/datahub Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,14 @@ import type { Subject } from '@opendatacapture/schemas/subject';
1515import { removeSubjectIdScope } from '@opendatacapture/subject-utils' ;
1616import { createFileRoute , useNavigate } from '@tanstack/react-router' ;
1717import axios from 'axios' ;
18+ import { UserSearchIcon } from 'lucide-react' ;
1819import { unparse } from 'papaparse' ;
1920
2021import { IdentificationForm } from '@/components/IdentificationForm' ;
2122import { PageHeader } from '@/components/PageHeader' ;
2223import { subjectsQueryOptions , useSubjectsQuery } from '@/hooks/useSubjectsQuery' ;
2324import { useAppStore } from '@/store' ;
2425import { downloadExcel } from '@/utils/excel' ;
25- import { UserSearchIcon } from 'lucide-react' ;
2626
2727type MasterDataTableProps = {
2828 data : Subject [ ] ;
@@ -103,7 +103,7 @@ const RouteComponent = () => {
103103 getExportRecords ( )
104104 . then ( ( data ) : any => {
105105 const listedSubjects = tableData . map ( ( record ) => {
106- return record . id . replace ( 'root$' , '' ) ;
106+ return record . id . replace ( / ^ . * ? \$ / , '' ) ;
107107 } ) ;
108108
109109 const filteredData = data . filter ( ( dataEntry ) => listedSubjects . includes ( dataEntry . subjectId ) ) ;
You can’t perform that action at this time.
0 commit comments