From 84cc97d480ca7eee93f4d2e01401106deb4f05f2 Mon Sep 17 00:00:00 2001 From: nsemets Date: Tue, 5 May 2026 10:27:09 +0300 Subject: [PATCH 1/2] fix(preprint-details): added create new version for rejected status --- .../pages/preprint-details/preprint-details.component.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/features/preprints/pages/preprint-details/preprint-details.component.ts b/src/app/features/preprints/pages/preprint-details/preprint-details.component.ts index ae0b35450..760b76ce1 100644 --- a/src/app/features/preprints/pages/preprint-details/preprint-details.component.ts +++ b/src/app/features/preprints/pages/preprint-details/preprint-details.component.ts @@ -186,7 +186,9 @@ export class PreprintDetailsComponent implements OnInit, OnDestroy { const preprint = this.preprint(); if (!preprint) return false; - return this.hasAdminAccess() && preprint.datePublished && preprint.isLatestVersion; + const preprintIsRejected = preprint.reviewsState === ReviewsState.Rejected; + + return this.hasAdminAccess() && (preprint.datePublished || preprintIsRejected) && preprint.isLatestVersion; }); editButtonVisible = computed(() => { From 675a4dffbf7cfebade37bc58ea526e91af00ccbc Mon Sep 17 00:00:00 2001 From: Yuhuai Liu Date: Wed, 6 May 2026 16:26:35 -0400 Subject: [PATCH 2/2] feat(release): Bump version no. and add CHANGELOG --- CHANGELOG | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 174a0978c..254840c51 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,11 @@ We follow the CalVer (https://calver.org/) versioning scheme: YY.MINOR.MICRO. +26.9.2 (2026-05-06) +=================== + +* Hotfix to avoid errors on creating preprint versions + 26.9.1 (2026-04-28) =================== diff --git a/package.json b/package.json index 3409621d3..616a38075 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "osf", - "version": "26.9.1", + "version": "26.9.2", "scripts": { "ng": "ng", "analyze-bundle": "ng build --configuration=analyze-bundle && source-map-explorer dist/**/*.js --no-border-checks",