1
0
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:
Tim Daubenschütz 2015-07-13 15:28:28 +02:00
parent 733c95a070
commit 6372a5af20
2 changed files with 2 additions and 2 deletions

View File

@ -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
}
};
}

View File

@ -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