diff --git a/index.js b/index.js index a457d58..a722300 100644 --- a/index.js +++ b/index.js @@ -78,9 +78,7 @@ module.exports = { // filtering out the collections from the convertedSpec result = convertedSpec.output.filter(returnCollections); - result.forEach((collection) => { - convertedCollections.push(collection); - }); + convertedCollections.push(result[0]); } else { conversionResult = conversionResult || convertedSpec.result;