From a1b7ac85a51a4a460fd5c0386982d4f81042c3d4 Mon Sep 17 00:00:00 2001 From: Aaron Putterman <60486980+abp6318@users.noreply.github.com> Date: Fri, 8 Sep 2023 14:22:49 -0400 Subject: [PATCH] fix: added default empty quotes for computeProps --- packages/common/src/content/_internal/computeProps.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/common/src/content/_internal/computeProps.ts b/packages/common/src/content/_internal/computeProps.ts index 44ed9492a1a..07fa1c7d09e 100644 --- a/packages/common/src/content/_internal/computeProps.ts +++ b/packages/common/src/content/_internal/computeProps.ts @@ -57,7 +57,10 @@ export function computeProps( workspaceRelative: getRelativeWorkspaceUrl("content", content.id), thumbnail: thumbnailUrl, }; - content.licenseInfo = model.item.licenseInfo; + + // cannot be null otherwise we'd get a validation + // error that doesn't let us save the form + content.licenseInfo = model.item.licenseInfo || ""; if (!content.location) { // build location if one does not exist based off of the boundary and the item's extent