We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc02002 commit 3ce8af3Copy full SHA for 3ce8af3
1 file changed
lib/integration/Plugin.js
@@ -336,9 +336,10 @@ export default class Plugin {
336
async getType () {
337
if (this._type) return this._type
338
const info = await this.getInfo()
339
+ if (!info) return null
340
const foundAttributeType = PLUGIN_TYPES.find(type => info[type])
341
const foundKeywordType = info.keywords
- .map(keyword => {
342
+ ?.map(keyword => {
343
const typematches = PLUGIN_TYPES.filter(type => keyword?.toLowerCase()?.includes(type))
344
return typematches.length ? typematches[0] : null
345
})
0 commit comments