aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index e69485b9a..220f7017e 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -204,6 +204,9 @@ export class DocumentView extends React.Component<DocumentViewProps> {
}
let sourceDoc: Document = sourceDocView.props.Document;
let destDoc: Document = this.props.Document;
+ if (this.props.isTopMost) {
+ return;
+ }
let linkDoc: Document = new Document();
linkDoc.Set(KeyStore.Title, new TextField("New Link"));