Skip to content

Commit 389bf4f

Browse files
committed
fix encoding & < > issues and linter issues
1 parent 38c125b commit 389bf4f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/app/features/preprints/services/preprints-projects.service.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
NodesResponseJsonApi,
1313
} from '@osf/shared/models/nodes/nodes-json-api.model';
1414
import { JsonApiService } from '@osf/shared/services/json-api.service';
15+
import { replaceBadEncodedChars } from '@shared/helpers/format-bad-encoding.helper';
1516

1617
import { PreprintsMapper } from '../mappers';
1718
import {
@@ -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
);

src/app/features/preprints/store/preprint-stepper/preprint-stepper.selectors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { 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

55
export class PreprintStepperSelectors {
66
@Selector([PreprintStepperState])

0 commit comments

Comments
 (0)