From e9d8612aa975c971bfa56c6db51ae5fed11a63dc Mon Sep 17 00:00:00 2001 From: Ellen Kraffmiller Date: Fri, 27 Oct 2023 10:43:37 -0400 Subject: [PATCH] fix: isReleased (will be replaced with dataset isReleased when integration is completed) --- src/dataset/infrastructure/mappers/JSDatasetMapper.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dataset/infrastructure/mappers/JSDatasetMapper.ts b/src/dataset/infrastructure/mappers/JSDatasetMapper.ts index fdf543694..065f95212 100644 --- a/src/dataset/infrastructure/mappers/JSDatasetMapper.ts +++ b/src/dataset/infrastructure/mappers/JSDatasetMapper.ts @@ -48,7 +48,8 @@ export class JSDatasetMapper { [], // TODO Connect with dataset locks true, // TODO Connect with dataset hasValidTermsOfAccess true, // TODO Connect with dataset isValid - !!jsDataset.versionInfo.releaseTime, // TODO Connect with dataset isReleased, + jsDataset.versionInfo.releaseTime !== undefined && + !isNaN(jsDataset.versionInfo.releaseTime.getTime()), // TODO Connect with dataset isReleased, privateUrl ).build() }