@@ -42,7 +42,6 @@ var SchedulingCheck = React.createClass({
42
42
sort : - 1 ,
43
43
reverse : false
44
44
} ,
45
- tableKey : 0 // so React knows to rerender the table
46
45
} ;
47
46
} ,
48
47
@@ -51,12 +50,10 @@ var SchedulingCheck = React.createClass({
51
50
this . setState ( {
52
51
tableState : React . addons . update ( this . state . tableState ,
53
52
{ reverse : { $set : ! this . state . tableState . reverse } } ) ,
54
- tableKey : this . state . tableKey + 1
55
53
} ) ;
56
54
} else {
57
55
this . setState ( {
58
56
tableState : React . addons . update ( this . state . tableState , { sort : { $set : column } , reverse : { $set : false } } ) ,
59
- tableKey : this . state . tableKey + 1
60
57
} ) ;
61
58
}
62
59
} ,
@@ -66,7 +63,6 @@ var SchedulingCheck = React.createClass({
66
63
newkey [ item ] = ! this . state . tableState . greyed [ item ] ;
67
64
this . setState ( {
68
65
tableState : React . addons . update ( this . state . tableState , { greyed : { $merge : newkey } } ) ,
69
- tableKey : this . state . tableKey + 1
70
66
} ) ;
71
67
} ,
72
68
@@ -77,7 +73,6 @@ var SchedulingCheck = React.createClass({
77
73
sort : - 1 ,
78
74
reverse : false
79
75
} ,
80
- tableKey : this . state . tableKey + 1
81
76
} ) ;
82
77
83
78
} ,
@@ -137,7 +132,7 @@ var SchedulingCheck = React.createClass({
137
132
table = < SelectTable rows = { data . body } header = { false }
138
133
saveState = { this . state . tableState }
139
134
clickHeader = { this . sortColumn } clickRow = { this . greyRow }
140
- key = { this . state . tableKey } /> ;
135
+ /> ;
141
136
} else {
142
137
var columns = [ ] ;
143
138
for ( i = 0 ; i < data . headings . length ; i ++ ) {
@@ -150,7 +145,7 @@ var SchedulingCheck = React.createClass({
150
145
table = < SelectTable rows = { data . body } columns = { columns }
151
146
header = { true } saveState = { this . state . tableState }
152
147
clickHeader = { this . sortColumn } clickRow = { this . greyRow }
153
- key = { this . state . tableKey } /> ;
148
+ /> ;
154
149
}
155
150
body = < div >
156
151
< div className = "placeholder" >
0 commit comments