Skip to content

Commit

Permalink
Add key to ExpiryTextInput
Browse files Browse the repository at this point in the history
  • Loading branch information
andreievg committed Jan 8, 2018
1 parent c1b60ff commit 99c363a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/pages/SupplierInvoicePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ export class SupplierInvoicePage extends React.Component {
case 'expiryDate': {
return (
<ExpiryTextInput
key={transactionBatch.id}
isEditable={isEditable}
onEndEditing={(newValue) => this.onEndEditing(key, transactionBatch, newValue)}
text={transactionBatch[key]}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/expansions/StocktakeEditExpansion.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class StocktakeEditExpansion extends React.Component {
case 'expiryDate': {
return (
<ExpiryTextInput
key={key}
key={stocktakeBatch.id}
isEditable={isEditable}
onEndEditing={(newValue) => {
this.onEndEditing(key, stocktakeBatch, newValue);
Expand Down

0 comments on commit 99c363a

Please sign in to comment.