We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f96e37 commit 68a756cCopy full SHA for 68a756c
1 file changed
apps/web/src/routes/_app/datahub/index.tsx
@@ -40,7 +40,7 @@ const MasterDataTable = ({ data, onSelect }: MasterDataTableProps) => {
40
{
41
accessorFn: (subject) => removeSubjectIdScope(subject.id).slice(0, subjectIdDisplaySetting ?? 9),
42
header: t('datahub.index.table.subject'),
43
- id: 'subject'
+ id: 'subjectId'
44
},
45
46
accessorFn: (subject) => (subject.dateOfBirth ? toBasicISOString(new Date(subject.dateOfBirth)) : 'NULL'),
@@ -70,6 +70,10 @@ const MasterDataTable = ({ data, onSelect }: MasterDataTableProps) => {
70
onSelect
71
}
72
]}
73
+ onSearchChange={(value, table) => {
74
+ const subjectIdColumn = table.getColumn('subjectId')!;
75
+ subjectIdColumn.setFilterValue(value);
76
+ }}
77
/>
78
</div>
79
);
0 commit comments