@@ -35,10 +35,10 @@ export const UPDATE_TBL_STATS = `${TBLSTATS_DATA_KEY}/UPDATE_TBL_STATS`;
35
35
*/
36
36
export function dispatchLoadTblStats ( searchRequest , dispatcher = flux . process ) {
37
37
const { tbl_id} = searchRequest ;
38
- // use resultSetId to determine if a call needs to be placed
39
- const resultSetId = get ( flux . getState ( ) , [ TBLSTATS_DATA_KEY , tbl_id , 'resultSetId ' ] ) ;
40
- const resultSetIdNow = get ( getTblById ( tbl_id ) , 'tableMeta.resultSetId ' ) ;
41
- if ( resultSetId !== resultSetIdNow ) {
38
+ // use resultSetID to determine if a call needs to be placed
39
+ const resultSetID = get ( flux . getState ( ) , [ TBLSTATS_DATA_KEY , tbl_id , 'resultSetID ' ] ) ;
40
+ const resultSetIDNow = get ( getTblById ( tbl_id ) , 'tableMeta.resultSetID ' ) ;
41
+ if ( resultSetID !== resultSetIDNow ) {
42
42
dispatcher ( { type : LOAD_TBL_STATS , payload : { searchRequest} } ) ;
43
43
}
44
44
}
@@ -87,9 +87,9 @@ export function reducer(state=getInitState(), action={}) {
87
87
const tblId = action . payload . tblId ;
88
88
89
89
// save original table file path
90
- const resultSetId = get ( getTblById ( tblId ) , 'tableMeta.resultSetId ' ) ;
90
+ const resultSetID = get ( getTblById ( tblId ) , 'tableMeta.resultSetID ' ) ;
91
91
92
- return updateSet ( state , tblId , { resultSetId , isColStatsReady : false } ) ;
92
+ return updateSet ( state , tblId , { resultSetID , isColStatsReady : false } ) ;
93
93
}
94
94
case ( UPDATE_TBL_STATS ) :
95
95
{
@@ -162,7 +162,7 @@ function fetchTblStats(dispatch, activeTableServerRequest) {
162
162
{
163
163
tblId : tbl_id ,
164
164
isColStatsReady : true ,
165
- resultSetId : undefined ,
165
+ resultSetID : undefined ,
166
166
colStats : undefined
167
167
} ) ) ;
168
168
}
0 commit comments