Skip to content

Commit

Permalink
fix: shouldClearEmptyFields now accounts for licenseInfo (#1198)
Browse files Browse the repository at this point in the history
  • Loading branch information
abp6318 authored Aug 30, 2023
1 parent 6743849 commit 3f4eb47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/common/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
}

0 comments on commit 3f4eb47

Please sign in to comment.