File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
apps/web/src/features/datahub/components Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { Outlet, useParams } from 'react-router-dom';
88import { LoadingFallback } from '@/components/LoadingFallback' ;
99import { PageHeader } from '@/components/PageHeader' ;
1010import { config } from '@/config' ;
11+ import { useAppStore } from '@/store' ;
1112
1213import { TabLink } from './TabLink' ;
1314
@@ -16,6 +17,7 @@ export const SubjectLayout = () => {
1617 const { t } = useTranslation ( 'datahub' ) ;
1718 const subjectId = params . subjectId ! ;
1819 const basePathname = `/datahub/${ subjectId } ` ;
20+ const subjectIdDisplaySetting = useAppStore ( ( store ) => store . currentGroup ?. settings . subjectIdDisplayLength ) ;
1921
2022 return (
2123 < React . Fragment >
@@ -26,7 +28,9 @@ export const SubjectLayout = () => {
2628 en : 'Instrument Records for Subject {}' ,
2729 fr : "Dossiers d'instruments pour le client {}"
2830 } ,
29- removeSubjectIdScope ( subjectId ) . slice ( 0 , 9 )
31+ subjectIdDisplaySetting
32+ ? removeSubjectIdScope ( subjectId ) . slice ( 0 , subjectIdDisplaySetting )
33+ : removeSubjectIdScope ( subjectId ) . slice ( 0 , 9 )
3034 ) }
3135 </ Heading >
3236 </ PageHeader >
You can’t perform that action at this time.
0 commit comments