Skip to content

Commit c859db6

Browse files
committed
resolve CR
1 parent d2921b3 commit c859db6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/app/features/collections/components/add-to-collection/project-metadata-step/project-metadata-step.component.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import { InterpolatePipe } from '@osf/shared/pipes/interpolate.pipe';
4545
import { ToastService } from '@osf/shared/services/toast.service';
4646
import { GetAllContributors } from '@osf/shared/stores/contributors';
4747
import { ClearProjects, ProjectsSelectors, UpdateProjectMetadata } from '@osf/shared/stores/projects';
48-
import { CollectionsSelectors, GetCollectionProvider } from '@shared/stores/collections';
48+
import { CollectionsSelectors } from '@shared/stores/collections';
4949

5050
@Component({
5151
selector: 'osf-project-metadata-step',
@@ -115,8 +115,7 @@ export class ProjectMetadataStepComponent {
115115

116116
readonly projectLicense = computed(() => {
117117
const project = this.selectedProject();
118-
const defaultProviderLicense = this.collectionProvider()?.defaultLicenseId;
119-
const licenseId = project?.licenseId || defaultProviderLicense;
118+
const licenseId = project?.licenseId || this.collectionProvider()?.defaultLicenseId;
120119
return project ? (this.collectionLicenses().find((license) => license.id === licenseId) ?? null) : null;
121120
});
122121

0 commit comments

Comments
 (0)