Skip to content

Commit

Permalink
Change: Display a progress indicator on delete.
Browse files Browse the repository at this point in the history
Return a promise to display a progress indicator while deleting.
  • Loading branch information
a-h-abdelsalam authored and timopollmeier committed May 17, 2024
1 parent 1ded44e commit c0f1c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/web/entities/container.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class EntitiesContainer extends React.Component {
handleDelete(entity) {
const {deleteEntity} = this.props;

deleteEntity(entity.id).then(this.handleChanged, this.handleError);
return deleteEntity(entity.id).then(this.handleChanged, this.handleError);
}

handleChanged() {
Expand Down

0 comments on commit c0f1c6f

Please sign in to comment.