diff options
author | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-06-19 04:52:26 -0400 |
---|---|---|
committer | Nathan-SR <144961007+Nathan-SR@users.noreply.github.com> | 2024-06-19 04:52:26 -0400 |
commit | b04015291de1d785ad54c0fad1f66903fb055bf4 (patch) | |
tree | ec30f4c79d3dae8f8792fd83bf8c67911eabe99d /src | |
parent | 5b81abbba40b8ec3d6fc32a93fa46954139081a5 (diff) |
removed unecessary field
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/collectionSchema/CollectionSchemaView.tsx | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx index c115fd34b..1d9245206 100644 --- a/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx +++ b/src/client/views/collections/collectionSchema/CollectionSchemaView.tsx @@ -104,7 +104,6 @@ export class CollectionSchemaView extends CollectionSubView() { @observable _highlightedCells: Array<HTMLDivElement> = []; @observable _cellHighlightColors: ObservableMap = new ObservableMap<HTMLDivElement, string[]>(); @observable _docs: Doc[] = []; - @observable _pauseSortHighlights: boolean = false; // target HTMLelement portal for showing a popup menu to edit cell values. public get MenuTarget() { @@ -897,13 +896,9 @@ export class CollectionSchemaView extends CollectionSubView() { this.setColumnSort(undefined); const field = this.columnKeys[index]; this._docs = this.sortDocs(field, false); - this._pauseSortHighlights = true; setTimeout(() => { this.highlightSortedColumn(field, false); - setTimeout(() => { - this._pauseSortHighlights = false; - this.highlightSortedColumn(); - }, 480); + setTimeout(() => this.highlightSortedColumn(), 480); }, 20); }, icon: 'arrow-down-a-z',}); @@ -913,13 +908,9 @@ export class CollectionSchemaView extends CollectionSubView() { this.setColumnSort(undefined); const field = this.columnKeys[index]; this._docs = this.sortDocs(field, true); - this._pauseSortHighlights = true; setTimeout(() => { this.highlightSortedColumn(field, true); - setTimeout(() => { - this._pauseSortHighlights = false; - this.highlightSortedColumn(); - }, 480); + setTimeout(() => this.highlightSortedColumn(), 480); }, 20); }, icon: 'arrow-up-z-a'}); |