aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSchemaView.tsx
diff options
context:
space:
mode:
authorAndy Rickert <andrew_rickert@brown.edu>2020-07-03 16:06:07 -0400
committerAndy Rickert <andrew_rickert@brown.edu>2020-07-03 16:06:07 -0400
commit195dde9364bf7b294d74b95e70c8c9a9dd19f891 (patch)
tree87a73536b68406952429c4aca5def016e7993523 /src/client/views/collections/CollectionSchemaView.tsx
parentb058ca45c5d8f3168fdb3a9e8733152765afdb0b (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.tsx4
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);