1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 01:25:17 +01:00

fix edition refresh after delete

This commit is contained in:
Tim Daubenschütz 2015-07-15 17:02:59 +02:00
parent 725e79bc4f
commit fe91cc4f6a

View File

@ -80,8 +80,7 @@ let Edition = React.createClass({
handleDeleteSuccess(response) {
PieceListActions.fetchPieceList(this.state.page, this.state.pageSize, this.state.search, this.state.orderBy, this.state.orderAsc);
// we don't need to refresh the edition list for a piece here, since its reloaded from
// scatch once you click on show-editions anyway
EditionListActions.refreshEditionList(this.props.edition.parent);
EditionListActions.closeAllEditionLists();
EditionListActions.clearAllEditionSelections();