Skip to content

Commit 6a3e1d8

Browse files
committed
fixed table statistics bug
1 parent 9c9fdf3 commit 6a3e1d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/firefly/js/charts/TableStatsCntlr.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ const dispatchUpdateTblStats = function(tblId,isColStatsReady,colStats) {
5959
*/
6060
export const loadTblStats = function(rawAction) {
6161
return (dispatch) => {
62-
dispatch({ type : LOAD_TBL_STATS, payload : rawAction.payload });
6362
if (rawAction.payload.searchRequest) {
63+
dispatch({ type : LOAD_TBL_STATS, payload : rawAction.payload });
6464
fetchTblStats(dispatch, rawAction.payload.searchRequest);
6565
}
6666
};
@@ -84,7 +84,7 @@ export function reducer(state=getInitState(), action={}) {
8484
}
8585
case (LOAD_TBL_STATS) :
8686
{
87-
const tblId = action.payload.tblId;
87+
const tblId = get(action.payload, ['searchRequest', 'tbl_id']);
8888

8989
// save original table file path
9090
const resultSetID = get(getTblById(tblId), 'tableMeta.resultSetID');

0 commit comments

Comments
 (0)