fix(variablelist): fix sort by variable type (#16935)

pull/16955/head
Russ Savage 2020-02-20 20:36:04 -08:00 committed by GitHub
parent fae020a773
commit b8130bf947
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@
1. [16919](https://github.com/influxdata/influxdb/pull/16919): Sort dashboards on homepage alphabetically
1. [16934](https://github.com/influxdata/influxdb/pull/16934): Tokens page now sorts by status
1. [16931](https://github.com/influxdata/influxdb/pull/16931): Set the defualt value of tags in a Check
1. [16935](https://github.com/influxdata/influxdb/pull/16935): Fix sort by variable type
## v2.0.0-beta.4 [2020-02-14]

View File

@ -14,7 +14,7 @@ import {Sort} from '@influxdata/clockface'
// Selectors
import {getSortedResources} from 'src/shared/utils/sort'
type SortKey = keyof Variable
type SortKey = keyof Variable | 'arguments.type'
interface Props {
variables: Variable[]
@ -77,7 +77,7 @@ export default class VariableList extends PureComponent<Props, State> {
}
private get headerKeys(): SortKey[] {
return ['name', 'arguments']
return ['name', 'arguments.type']
}
private get rows(): JSX.Element[] {