Skip to content

Commit

Permalink
remove redundant filter
Browse files Browse the repository at this point in the history
  • Loading branch information
TeodoraPavlova committed Apr 23, 2024
1 parent dff2274 commit 81e1968
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/components/EntityBulkAdd.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ function generateEntityForm(id) {
async function saveAll() {
let successfullySaved = [];
const promises = Object.entries(entityFormRefs.value)
.filter(ref => ref[1] !== null).map(ref => saveSingle(ref));
const promises = Object.entries(entityFormRefs.value).map(ref => saveSingle(ref));
Promise.all(promises).then(responses => {
responses.forEach(resp => {
if (resp?.id) {
Expand Down

0 comments on commit 81e1968

Please sign in to comment.