mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-12-25 23:23:21 -05:00
Add keys to help react out
This commit is contained in:
parent
2a8c79cc14
commit
41361b040c
@ -287,7 +287,7 @@ const AddEditTransactionModal = React.createClass({
|
||||
var deleteButton = [];
|
||||
if (editing) {
|
||||
deleteButton = (
|
||||
<Button onClick={this.handleDelete} bsStyle="danger">Delete Transaction</Button>
|
||||
<Button key={1} onClick={this.handleDelete} bsStyle="danger">Delete Transaction</Button>
|
||||
);
|
||||
}
|
||||
|
||||
@ -346,7 +346,7 @@ const AddEditTransactionModal = React.createClass({
|
||||
}
|
||||
|
||||
splits.push((
|
||||
<Row>
|
||||
<Row key={s.SplitId}>
|
||||
<Col xs={1}><Input
|
||||
type="text"
|
||||
value={s.Number}
|
||||
@ -808,6 +808,7 @@ module.exports = React.createClass({
|
||||
var t = this.state.transactions[i];
|
||||
transactionRows.push((
|
||||
<TransactionRow
|
||||
key={t.TransactionId}
|
||||
transaction={t}
|
||||
account={this.props.selectedAccount}
|
||||
accounts={this.props.accounts}
|
||||
|
@ -279,6 +279,7 @@ const AccountTreeNode = React.createClass({
|
||||
var children = this.props.account.Children.map(function(account) {
|
||||
return (
|
||||
<AccountTreeNode
|
||||
key={account.AccountId}
|
||||
account={account}
|
||||
selectedAccount={self.props.selectedAccount}
|
||||
onSelect={self.handleChildSelect}/>
|
||||
@ -289,6 +290,7 @@ const AccountTreeNode = React.createClass({
|
||||
if (children.length > 0) {
|
||||
expandButton.push((
|
||||
<Button onClick={this.handleToggle}
|
||||
key={1}
|
||||
bsSize="xsmall"
|
||||
bsStyle="link"
|
||||
className="accounttree-expandbutton">
|
||||
@ -343,6 +345,7 @@ const AccountTree = React.createClass({
|
||||
for (var i = 0; i < accounts.length; i++) {
|
||||
if (accounts[i].isRootAccount())
|
||||
children.push((<AccountTreeNode
|
||||
key={accounts[i].AccountId}
|
||||
account={accounts[i]}
|
||||
selectedAccount={this.state.selectedAccount}
|
||||
onSelect={this.handleSelect}/>));
|
||||
|
Loading…
Reference in New Issue
Block a user