diff options
| author | bobzel <zzzman@gmail.com> | 2021-03-29 19:04:08 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-03-29 19:04:08 -0400 |
| commit | 7db0fe589afa3281894afb0a0d3bd6b9983c9d33 (patch) | |
| tree | 3c8f81ddb5049c4c15c4ca4f4487cb63e7539049 /src/client/views/nodes/PresBox.tsx | |
| parent | fa6aa3f3d13cade1cd46d954dbfee6f8566bcc86 (diff) | |
still cleaning up all the active/selection code.
Diffstat (limited to 'src/client/views/nodes/PresBox.tsx')
| -rw-r--r-- | src/client/views/nodes/PresBox.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/views/nodes/PresBox.tsx b/src/client/views/nodes/PresBox.tsx index 21ab0a2e0..57c88d411 100644 --- a/src/client/views/nodes/PresBox.tsx +++ b/src/client/views/nodes/PresBox.tsx @@ -713,8 +713,7 @@ export class PresBox extends ViewBoxBaseComponent<FieldViewProps, PresBoxSchema> whenChildContentsActiveChanged = action((isActive: boolean) => this.props.whenChildContentsActiveChanged(this._isChildActive = isActive)); // For dragging documents into the presentation trail - addDocumentFilter = (doc: Doc | Doc[]) => { - const docs = doc instanceof Doc ? [doc] : doc; + addDocumentFilter = (docs: Doc[]) => { docs.forEach((doc, i) => { if (doc.presentationTargetDoc) return true; if (doc.type === DocumentType.LABEL) { |
