Skip to content

Commit

Permalink
wc: fix extensions manager for supporting multiple extensions provide…
Browse files Browse the repository at this point in the history
…rs #TASK-5246
  • Loading branch information
jmjuanes committed Nov 9, 2023
1 parent 3618c3c commit 71b2632
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/webcomponents/extensions-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ export default {
// @param {string} type - the extension type (e.g. "tool")
// @return {array} extensions - an array with the extesions of the specified type
getByType(type) {
return (window?.IVA_EXTENSIONS?.extensions || []).filter(extension => extension.type === type);
return (window?.IVA_EXTENSIONS || [])
.map(source => source?.extensions || [])
.flat()
.filter(extension => extension.type === type);
},

// Gets a list of detail tabs generated from the extensions for the specified component
Expand Down

0 comments on commit 71b2632

Please sign in to comment.