mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Add default redirect for empty collections
This commit is contained in:
parent
9559bc09b4
commit
27f1b7e9b4
@ -62,6 +62,7 @@ let PieceList = React.createClass({
|
||||
]
|
||||
}],
|
||||
orderParams: ['artist_name', 'title'],
|
||||
redirectTo: '/register_piece',
|
||||
shouldRedirect: () => true
|
||||
};
|
||||
},
|
||||
|
@ -75,7 +75,6 @@ let PrizePieceList = React.createClass({
|
||||
<div>
|
||||
<PieceList
|
||||
ref="list"
|
||||
redirectTo="/register_piece"
|
||||
accordionListItemType={AccordionListItemPrize}
|
||||
orderParams={orderParams}
|
||||
orderBy={this.state.currentUser.is_jury ? 'rating' : null}
|
||||
|
Loading…
Reference in New Issue
Block a user