Make use of single argument Object
This commit is contained in:
parent
0644a8c9fb
commit
eb760b37e6
1 changed files with 4 additions and 4 deletions
|
|
@ -177,7 +177,7 @@ export default {
|
|||
icon: "error",
|
||||
})
|
||||
},
|
||||
parsePostmanCollection({ item, info, name }, folders = true) {
|
||||
parsePostmanCollection(collection, folders = true) {
|
||||
let postwomanCollection = folders
|
||||
? [
|
||||
{
|
||||
|
|
@ -190,13 +190,13 @@ export default {
|
|||
name: "",
|
||||
requests: [],
|
||||
}
|
||||
for (let collectionItem of item) {
|
||||
for (let collectionItem of collection.item) {
|
||||
if (collectionItem.request) {
|
||||
if (postwomanCollection[0]) {
|
||||
postwomanCollection[0].name = info ? info.name : ""
|
||||
postwomanCollection[0].name = collection.info ? collection.info.name : ""
|
||||
postwomanCollection[0].requests.push(this.parsePostmanRequest(collectionItem))
|
||||
} else {
|
||||
postwomanCollection.name = name ? name : ""
|
||||
postwomanCollection.name = collection.name ? collection.name : ""
|
||||
postwomanCollection.requests.push(this.parsePostmanRequest(collectionItem))
|
||||
}
|
||||
} else if (collectionItem.item) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue