Skip to content

Commit

Permalink
fix: Build
Browse files Browse the repository at this point in the history
  • Loading branch information
oodamien committed Jun 17, 2024
1 parent 114327f commit 715b2af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/helpers/versionTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
module.exports = (components) => versionTree(components)

function versionTree (components) {
return components.map((comp) => {
if (!components || !Array.isArray(components)) {
return []
}
return components?.map((comp) => {
return {
...comp,
versions: splitVersions(comp.versions),
Expand Down

0 comments on commit 715b2af

Please sign in to comment.