Skip to content

Commit aceedbb

Browse files
committed
fix(preprint-stepper): Fixed add-project-form
1 parent 30d7c69 commit aceedbb

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/app/features/preprints/components/preprint-details/general-information/general-information.component.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ <h3>{{ 'preprints.preprintStepper.common.labels.abstract' | translate }}</h3>
1414
@if (preprintValue.nodeId) {
1515
<section class="flex flex-column gap-2">
1616
<h3>{{ 'preprints.details.supplementalMaterials' | translate }}</h3>
17-
<a [routerLink]="nodeLink()" class="flex gap-1">
17+
<a [href]="nodeLink()" class="flex gap-1">
1818
{{ nodeLink() }}
1919
<osf-icon iconClass="fa fa-external-link-alt" />
2020
</a>

‎src/app/features/preprints/preprints.routes.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { PreprintState } from '@osf/features/preprints/store/preprint';
88
import { PreprintProvidersState } from '@osf/features/preprints/store/preprint-providers';
99
import { PreprintStepperState } from '@osf/features/preprints/store/preprint-stepper';
1010
import { ConfirmLeavingGuard } from '@shared/guards';
11-
import { CitationsState, ContributorsState, SubjectsState } from '@shared/stores';
11+
import { CitationsState, ContributorsState, ProjectsState, SubjectsState } from '@shared/stores';
1212

1313
import { PreprintModerationState } from '../moderation/store/preprint-moderation';
1414

@@ -62,6 +62,7 @@ export const preprintsRoutes: Routes = [
6262
(c) => c.SubmitPreprintStepperComponent
6363
),
6464
canDeactivate: [ConfirmLeavingGuard],
65+
providers: [provideStates([ProjectsState])],
6566
},
6667
{
6768
path: ':providerId/edit/:preprintId',
@@ -71,6 +72,7 @@ export const preprintsRoutes: Routes = [
7172
(c) => c.UpdatePreprintStepperComponent
7273
),
7374
canDeactivate: [ConfirmLeavingGuard],
75+
providers: [provideStates([ProjectsState])],
7476
},
7577
{
7678
path: ':providerId/moderation',

0 commit comments

Comments
 (0)