Skip to content

Commit

Permalink
Bugfix for refreshing the entity list after delete/restore (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
TeodoraPavlova authored Apr 19, 2024
1 parent 098e161 commit c123bdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/EntityList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default {
},
onDeletion() {
const promises = this.selected.map(eId => {
this.$api.deleteEntity({
return this.$api.deleteEntity({
schemaSlug: this.schema.slug,
entityIdOrSlug: eId
});
Expand All @@ -165,7 +165,7 @@ export default {
},
onRestoration() {
const promises = this.selected.map(eId => {
this.$api.restoreEntity({
return this.$api.restoreEntity({
schemaSlug: this.schema.slug,
entityIdOrSlug: eId
});
Expand Down

0 comments on commit c123bdd

Please sign in to comment.