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(), };