Skip to content

Commit 4a2fd4f

Browse files
committed
feat: adjust ctx method so id is sliced within display instead of beforehand
1 parent c598121 commit 4a2fd4f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/web/src/routes/_app/datahub/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,11 @@ const MasterDataTable: React.FC<{
307307
<DataTable
308308
columns={[
309309
{
310-
accessorFn: (subject) => removeSubjectIdScope(subject.id).slice(0, subjectIdDisplaySetting ?? 9),
310+
accessorFn: (subject) => removeSubjectIdScope(subject.id),
311311
cell: (ctx) => (
312312
<div className="grid">
313313
<div className="min-w-0 overflow-x-auto whitespace-nowrap" title={ctx.getValue() as string}>
314-
{ctx.getValue() as string}
314+
{(ctx.getValue() as string).slice(0, subjectIdDisplaySetting ?? 9)}
315315
</div>
316316
</div>
317317
),

0 commit comments

Comments
 (0)