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

Fix queryParams glitch for slide show in register_piece

This commit is contained in:
Tim Daubenschütz 2015-09-28 15:59:36 +02:00
parent cb9acf71f4
commit 3ae362ac15

View File

@ -17,7 +17,6 @@ import Pagination from './ascribe_pagination/pagination';
import PieceListFilterDisplay from './piece_list_filter_display';
import GlobalAction from './global_action';
import PieceListBulkModal from './ascribe_piece_list_bulk_modal/piece_list_bulk_modal';
import PieceListToolbar from './ascribe_piece_list_toolbar/piece_list_toolbar';
@ -76,7 +75,7 @@ let PieceList = React.createClass({
componentDidUpdate() {
if (this.props.redirectTo && this.state.unfilteredPieceListCount === 0) {
// FIXME: hack to redirect out of the dispatch cycle
window.setTimeout(() => this.transitionTo(this.props.redirectTo), 0);
window.setTimeout(() => this.transitionTo(this.props.redirectTo, this.getQuery()));
}
},