diff options
author | bobzel <zzzman@gmail.com> | 2020-10-15 15:20:51 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-10-15 15:20:51 -0400 |
commit | f1ee3a6baffb22093d81e123d70f6ec9631c2075 (patch) | |
tree | f0cc215e8e58672e4de970542487429094399cc5 /src/client/views/nodes/PresBox.tsx | |
parent | 79221b73d0526ce31349cf4a5b75f0047c60b829 (diff) |
got rid of isDragging in favor of a field on the PresElement. fixed moving items in presBox by fixing websocket to maintain ordering on sequential operations on a list. fixed list splicing to not call addToSet unless splicing is at end of list. fixed setting return scale when following link into portal
Diffstat (limited to 'src/client/views/nodes/PresBox.tsx')
-rw-r--r-- | src/client/views/nodes/PresBox.tsx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/client/views/nodes/PresBox.tsx b/src/client/views/nodes/PresBox.tsx index 8e2884968..352328ec6 100644 --- a/src/client/views/nodes/PresBox.tsx +++ b/src/client/views/nodes/PresBox.tsx @@ -599,13 +599,7 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps, PresBoxSchema> */ @action sortArray = (): Doc[] => { - const sort: Doc[] = this._selectedArray; - this.childDocs.forEach((doc, i) => { - if (this._selectedArray.includes(doc)) { - sort.push(doc); - } - }); - return sort; + return this.childDocs.filter(doc => this._selectedArray.includes(doc)); } /** @@ -1731,8 +1725,8 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps, PresBoxSchema> const frameItems = frameList.map((value) => { <div className="frameItem"> - </div> - }) + </div>; + }); return <div> {frameItems} </div>; |