diff --git a/lib/integration/Plugin.js b/lib/integration/Plugin.js index 6653fa3..c35ed2c 100644 --- a/lib/integration/Plugin.js +++ b/lib/integration/Plugin.js @@ -336,9 +336,10 @@ export default class Plugin { async getType () { if (this._type) return this._type const info = await this.getInfo() + if (!info) return null const foundAttributeType = PLUGIN_TYPES.find(type => info[type]) const foundKeywordType = info.keywords - .map(keyword => { + ?.map(keyword => { const typematches = PLUGIN_TYPES.filter(type => keyword?.toLowerCase()?.includes(type)) return typematches.length ? typematches[0] : null })