diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-05-16 22:56:19 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-05-16 22:56:19 -0400 |
commit | 6e65b1e32eb972358d9c8dbd7f8d984d3baefc4b (patch) | |
tree | bdabcfc70b90e943e3aaf9ab8b93a916cabd007d /src/client/views/nodes/FormattedTextBox.tsx | |
parent | 0c019112791138304eaaeea768d254981322ec55 (diff) |
fixed links so that you can adjust the pan location of a collection when its a link endoint
Diffstat (limited to 'src/client/views/nodes/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/FormattedTextBox.tsx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/client/views/nodes/FormattedTextBox.tsx b/src/client/views/nodes/FormattedTextBox.tsx index f30022508..bf98fb40b 100644 --- a/src/client/views/nodes/FormattedTextBox.tsx +++ b/src/client/views/nodes/FormattedTextBox.tsx @@ -111,9 +111,7 @@ export class FormattedTextBox extends DocComponent<(FieldViewProps & FormattedTe let sourceDoc = de.data.linkSourceDocument; let destDoc = this.props.Document; - const protoDest = destDoc.proto; - const protoSrc = sourceDoc.proto; - Doc.MakeLink(protoSrc ? protoSrc : sourceDoc, protoDest ? protoDest : destDoc); + Doc.MakeLink(sourceDoc, destDoc); de.data.droppedDocuments.push(destDoc); e.stopPropagation(); } |