From e28c30d294ac6e3c78f0928007bb682ed96d8663 Mon Sep 17 00:00:00 2001
From: Martin Weise <martin.weise@tuwien.ac.at>
Date: Tue, 5 Nov 2024 16:46:25 +0100
Subject: [PATCH] Fixed

---
 .docs/changelog.md                          | 3 ++-
 dbrepo-ui/composables/identifier-service.ts | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/.docs/changelog.md b/.docs/changelog.md
index 9a373f7275..71912bb280 100644
--- a/.docs/changelog.md
+++ b/.docs/changelog.md
@@ -19,7 +19,8 @@ author: Martin Weise
 
 #### Changes
 
-* Remove the Data Database Sidecar and replace it with Apache Spark 4.
+* Remove the Data Database Sidecar and replace it with Apache Spark 4 
+  in [#458](https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/issues/458).
 * Allow anonymous users to create subsets for public databases
   in [#449](https://gitlab.phaidra.org/fair-data-austria-db-repository/fda-services/-/issues/449).
 * Show file upload progress
diff --git a/dbrepo-ui/composables/identifier-service.ts b/dbrepo-ui/composables/identifier-service.ts
index 96e5610c8c..f85c48dc21 100644
--- a/dbrepo-ui/composables/identifier-service.ts
+++ b/dbrepo-ui/composables/identifier-service.ts
@@ -288,7 +288,7 @@ export const useIdentifierService = (): any => {
     if (!data) {
       return null
     }
-    return data.doi !== null ? 'DOI' : 'URI'
+    return data.doi ? 'DOI' : 'URI'
   }
 
   function creatorToCreatorJsonLd(creator: CreatorDto) {
-- 
GitLab