fix(dashboard): keep table sorting on refresh

5492/message_validation
Pavel Zavora 2020-06-15 06:06:34 +02:00 committed by Bucky Schwarz
parent 92474858ae
commit 7edae1be4d
1 changed files with 2 additions and 1 deletions

View File

@ -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
}