diff options
author | Andy Rickert <andrew_rickert@brown.edu> | 2020-07-03 16:06:07 -0400 |
---|---|---|
committer | Andy Rickert <andrew_rickert@brown.edu> | 2020-07-03 16:06:07 -0400 |
commit | 195dde9364bf7b294d74b95e70c8c9a9dd19f891 (patch) | |
tree | 87a73536b68406952429c4aca5def016e7993523 /src/client/views/collections/CollectionSchemaView.tsx | |
parent | b058ca45c5d8f3168fdb3a9e8733152765afdb0b (diff) |
search works with schema, fixed sorting...stil a lot of bugs
Diffstat (limited to 'src/client/views/collections/CollectionSchemaView.tsx')
-rw-r--r-- | src/client/views/collections/CollectionSchemaView.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionSchemaView.tsx b/src/client/views/collections/CollectionSchemaView.tsx index 9722f8f26..688313951 100644 --- a/src/client/views/collections/CollectionSchemaView.tsx +++ b/src/client/views/collections/CollectionSchemaView.tsx @@ -170,6 +170,10 @@ export class CollectionSchemaView extends CollectionSubView(doc => doc) { @action setColumnSort = (columnField: SchemaHeaderField, descending: boolean | undefined) => { const columns = this.columns; + columns.forEach(col => { + col.setDesc(undefined); + }) + const index = columns.findIndex(c => c.heading === columnField.heading); const column = columns[index]; column.setDesc(descending); |