mirror of
https://github.com/ascribe/onion.git
synced 2024-12-23 01:39:36 +01:00
adjusted frontend to use first_edition from piece directly
This commit is contained in:
parent
733c95a070
commit
6372a5af20
@ -115,7 +115,7 @@ let AccordionListItem = React.createClass({
|
||||
linkData = {
|
||||
to: 'edition',
|
||||
params: {
|
||||
editionId: this.props.content.firstEdition ? this.props.content.firstEdition.bitcoin_id : 0
|
||||
editionId: this.props.content.first_edition ? this.props.content.first_edition.bitcoin_id : 0
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -93,7 +93,7 @@ let AccordionListItemEditionWidget = React.createClass({
|
||||
);
|
||||
}
|
||||
else if(numEditions === 1) {
|
||||
let editionMapping = piece && piece.firstEdition ? piece.firstEdition.edition_number + '/' + piece.num_editions : '';
|
||||
let editionMapping = piece && piece.first_edition ? piece.first_edition.edition_number + '/' + piece.num_editions : '';
|
||||
|
||||
return (
|
||||
<button
|
||||
|
Loading…
Reference in New Issue
Block a user