From 283f2299956c53ea77206a973210c3ecc9475180 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominique=20J=C3=A4ggi?= <1872195+solaris007@users.noreply.github.com> Date: Sun, 10 Dec 2023 08:47:06 +0100 Subject: [PATCH] fix: no undefined for putItem (#43) --- packages/spacecat-shared-data-access/src/dto/site.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/spacecat-shared-data-access/src/dto/site.js b/packages/spacecat-shared-data-access/src/dto/site.js index 1f3da20e..5f13a78c 100644 --- a/packages/spacecat-shared-data-access/src/dto/site.js +++ b/packages/spacecat-shared-data-access/src/dto/site.js @@ -24,8 +24,8 @@ export const SiteDto = { toDynamoItem: (site) => ({ id: site.getId(), baseURL: site.getBaseURL(), - gitHubURL: site.getGitHubURL(), - imsOrgId: site.getImsOrgId(), + gitHubURL: site.getGitHubURL() || '', + imsOrgId: site.getImsOrgId() || '', isLive: site.isLive(), createdAt: site.getCreatedAt(), updatedAt: site.getUpdatedAt(),