Skip to content

Commit

Permalink
Fix checking of available projects
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandermendes committed May 29, 2018
1 parent 6534e4b commit 97482f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pages/admin/project/new/_category_short_name.vue
Original file line number Diff line number Diff line change
Expand Up @@ -178,11 +178,11 @@ export default {
}
// Check if the collection has a volume not used by this template
this.currentCollection.info.volumes.forEach(vol => {
for (let vol of this.currentCollection.info.volumes) {
if (this.isComboAvailable(tmpl, vol)) {
return true
}
})
}
return false
})
},
Expand All @@ -195,11 +195,11 @@ export default {
}
// Check if the collection has a template not used by this volume
this.currentCollection.info.templates.forEach(tmpl => {
for (let tmpl of this.currentCollection.info.templates) {
if (this.isComboAvailable(tmpl, vol)) {
return true
}
})
}
return false
})
},
Expand Down

0 comments on commit 97482f9

Please sign in to comment.