File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/app/features/preprints Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import {
1212 NodesResponseJsonApi ,
1313} from '@osf/shared/models/nodes/nodes-json-api.model' ;
1414import { JsonApiService } from '@osf/shared/services/json-api.service' ;
15+ import { replaceBadEncodedChars } from '@shared/helpers/format-bad-encoding.helper' ;
1516
1617import { PreprintsMapper } from '../mappers' ;
1718import {
@@ -44,7 +45,7 @@ export class PreprintsProjectsService {
4445 map ( ( response ) => {
4546 return response . data . map ( ( item ) => ( {
4647 id : item . id ,
47- name : item . attributes . title ,
48+ name : replaceBadEncodedChars ( item . attributes . title ) ,
4849 } ) ) ;
4950 } )
5051 ) ;
@@ -55,7 +56,7 @@ export class PreprintsProjectsService {
5556 map ( ( response ) => {
5657 return {
5758 id : response . data . id ,
58- name : response . data . attributes . title ,
59+ name : replaceBadEncodedChars ( response . data . attributes . title ) ,
5960 } ;
6061 } )
6162 ) ;
Original file line number Diff line number Diff line change 11import { Selector } from '@ngxs/store' ;
22
3- import { PreprintStepperState , PreprintStepperStateModel } from '@osf/features/preprints/store/preprint-stepper'
3+ import { PreprintStepperState , PreprintStepperStateModel } from '@osf/features/preprints/store/preprint-stepper' ;
44
55export class PreprintStepperSelectors {
66 @Selector ( [ PreprintStepperState ] )
You can’t perform that action at this time.
0 commit comments