From cff22f965f971766c1899e341f39331fc7d847e5 Mon Sep 17 00:00:00 2001 From: Andrew Anguiano Date: Wed, 10 Jul 2024 11:52:58 -0400 Subject: [PATCH] feat: If category terms aren't present, remove them from the datasource --- utils/lib/DataSource.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/lib/DataSource.ts b/utils/lib/DataSource.ts index 06447d78a7..a23552fccb 100644 --- a/utils/lib/DataSource.ts +++ b/utils/lib/DataSource.ts @@ -96,7 +96,7 @@ class DataSource extends Component { displayName: displayName && displayName.trim(), icon: this._getIconUrl(), install: this._parseInstall(), - categoryTerms: categoryTerms && categoryTerms.map((t) => t.trim()), + categoryTerms: categoryTerms ? categoryTerms.map((t) => t.trim()): [], keywords: keywords ? keywords.map((k) => k.trim()) : [], description: description && description.trim(), };