fix(dashboard): keep table sorting on refresh
parent
92474858ae
commit
7edae1be4d
|
@ -167,7 +167,8 @@ class TableGraphFormat extends PureComponent<Props, State> {
|
|||
|
||||
if (sortField === sort.field) {
|
||||
sort.direction = sort.direction === ASCENDING ? DESCENDING : ASCENDING
|
||||
} else {
|
||||
} else if (sortField !== undefined) {
|
||||
// setup sort unless the data are refreshed
|
||||
sort.field = sortField || this.sortField
|
||||
sort.direction = DEFAULT_SORT_DIRECTION
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue