Skip to content

Commit 4647488

Browse files
committed
removed tableKey
1 parent eeb1a74 commit 4647488

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

esp/public/media/scripts/program/modules/scheduling_checks.jsx

+2-7
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ var SchedulingCheck = React.createClass({
4242
sort: -1,
4343
reverse: false
4444
},
45-
tableKey: 0 // so React knows to rerender the table
4645
};
4746
},
4847

@@ -51,12 +50,10 @@ var SchedulingCheck = React.createClass({
5150
this.setState( {
5251
tableState: React.addons.update(this.state.tableState,
5352
{ reverse: {$set: !this.state.tableState.reverse} } ),
54-
tableKey: this.state.tableKey + 1
5553
} );
5654
} else {
5755
this.setState( {
5856
tableState: React.addons.update(this.state.tableState, { sort: {$set: column}, reverse: {$set: false} }),
59-
tableKey: this.state.tableKey + 1
6057
} );
6158
}
6259
},
@@ -66,7 +63,6 @@ var SchedulingCheck = React.createClass({
6663
newkey[item] = !this.state.tableState.greyed[item];
6764
this.setState( {
6865
tableState: React.addons.update(this.state.tableState, { greyed: {$merge: newkey} } ),
69-
tableKey: this.state.tableKey + 1
7066
} );
7167
},
7268

@@ -77,7 +73,6 @@ var SchedulingCheck = React.createClass({
7773
sort: -1,
7874
reverse: false
7975
},
80-
tableKey: this.state.tableKey + 1
8176
});
8277

8378
},
@@ -137,7 +132,7 @@ var SchedulingCheck = React.createClass({
137132
table = <SelectTable rows = {data.body} header = {false}
138133
saveState = {this.state.tableState}
139134
clickHeader = {this.sortColumn} clickRow = {this.greyRow}
140-
key = {this.state.tableKey} />;
135+
/>;
141136
} else {
142137
var columns = [];
143138
for (i = 0; i < data.headings.length; i++) {
@@ -150,7 +145,7 @@ var SchedulingCheck = React.createClass({
150145
table = <SelectTable rows = {data.body} columns = {columns}
151146
header = {true} saveState = {this.state.tableState}
152147
clickHeader = {this.sortColumn} clickRow = {this.greyRow}
153-
key = {this.state.tableKey} />;
148+
/>;
154149
}
155150
body = <div>
156151
<div className="placeholder">

0 commit comments

Comments
 (0)