From 3f4eb476e034d399274f7ffd410e8218c905b055 Mon Sep 17 00:00:00 2001 From: Aaron Putterman <60486980+abp6318@users.noreply.github.com> Date: Wed, 30 Aug 2023 15:28:12 -0400 Subject: [PATCH] fix: shouldClearEmptyFields now accounts for licenseInfo (#1198) --- packages/common/src/models/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/common/src/models/index.ts b/packages/common/src/models/index.ts index 7925189bb90..2929f7e1c2a 100644 --- a/packages/common/src/models/index.ts +++ b/packages/common/src/models/index.ts @@ -291,7 +291,7 @@ export async function fetchModelResources( * @return {*} boolean */ function shouldClearEmptyFields(item: IItem): boolean { - return ["description", "snippet", "tags", "categories"].some( + return ["description", "snippet", "tags", "categories", "licenseInfo"].some( (field) => item[field] === "" || item[field]?.length === 0 ); }