mirror of
https://github.com/aclindsa/moneygo.git
synced 2024-12-26 15:42:27 -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 = [];
|
var deleteButton = [];
|
||||||
if (editing) {
|
if (editing) {
|
||||||
deleteButton = (
|
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((
|
splits.push((
|
||||||
<Row>
|
<Row key={s.SplitId}>
|
||||||
<Col xs={1}><Input
|
<Col xs={1}><Input
|
||||||
type="text"
|
type="text"
|
||||||
value={s.Number}
|
value={s.Number}
|
||||||
@ -808,6 +808,7 @@ module.exports = React.createClass({
|
|||||||
var t = this.state.transactions[i];
|
var t = this.state.transactions[i];
|
||||||
transactionRows.push((
|
transactionRows.push((
|
||||||
<TransactionRow
|
<TransactionRow
|
||||||
|
key={t.TransactionId}
|
||||||
transaction={t}
|
transaction={t}
|
||||||
account={this.props.selectedAccount}
|
account={this.props.selectedAccount}
|
||||||
accounts={this.props.accounts}
|
accounts={this.props.accounts}
|
||||||
|
@ -279,6 +279,7 @@ const AccountTreeNode = React.createClass({
|
|||||||
var children = this.props.account.Children.map(function(account) {
|
var children = this.props.account.Children.map(function(account) {
|
||||||
return (
|
return (
|
||||||
<AccountTreeNode
|
<AccountTreeNode
|
||||||
|
key={account.AccountId}
|
||||||
account={account}
|
account={account}
|
||||||
selectedAccount={self.props.selectedAccount}
|
selectedAccount={self.props.selectedAccount}
|
||||||
onSelect={self.handleChildSelect}/>
|
onSelect={self.handleChildSelect}/>
|
||||||
@ -289,6 +290,7 @@ const AccountTreeNode = React.createClass({
|
|||||||
if (children.length > 0) {
|
if (children.length > 0) {
|
||||||
expandButton.push((
|
expandButton.push((
|
||||||
<Button onClick={this.handleToggle}
|
<Button onClick={this.handleToggle}
|
||||||
|
key={1}
|
||||||
bsSize="xsmall"
|
bsSize="xsmall"
|
||||||
bsStyle="link"
|
bsStyle="link"
|
||||||
className="accounttree-expandbutton">
|
className="accounttree-expandbutton">
|
||||||
@ -343,6 +345,7 @@ const AccountTree = React.createClass({
|
|||||||
for (var i = 0; i < accounts.length; i++) {
|
for (var i = 0; i < accounts.length; i++) {
|
||||||
if (accounts[i].isRootAccount())
|
if (accounts[i].isRootAccount())
|
||||||
children.push((<AccountTreeNode
|
children.push((<AccountTreeNode
|
||||||
|
key={accounts[i].AccountId}
|
||||||
account={accounts[i]}
|
account={accounts[i]}
|
||||||
selectedAccount={this.state.selectedAccount}
|
selectedAccount={this.state.selectedAccount}
|
||||||
onSelect={this.handleSelect}/>));
|
onSelect={this.handleSelect}/>));
|
||||||
|
Loading…
Reference in New Issue
Block a user