mirror of
https://github.com/ascribe/onion.git
synced 2025-02-14 21:10:27 +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 = {
|
linkData = {
|
||||||
to: 'edition',
|
to: 'edition',
|
||||||
params: {
|
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) {
|
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 (
|
return (
|
||||||
<button
|
<button
|
||||||
|
Loading…
Reference in New Issue
Block a user