diff options
author | bobzel <zzzman@gmail.com> | 2022-10-06 10:19:31 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-10-06 10:19:31 -0400 |
commit | 4d21b79bfb87bb5fe81950a432a031f42b99f707 (patch) | |
tree | a0bd99abd41addd182995780764dbda45ed516a3 /src/client/documents/Documents.ts | |
parent | 91c1665f64c27c17c0887800182e0b6e803fa0fb (diff) |
don't allow golden layout to be created if there's no dockingConfig.
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index cd647f5e8..a6a10d91a 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -1902,8 +1902,8 @@ ScriptingGlobals.add(function makeDelegate(proto: any) { return d; }); ScriptingGlobals.add(function generateLinkTitle(self: Doc) { - const anchor1title = self.anchor1 && self.anchor1 !== self ? Cast(self.anchor1, Doc, null).title : '<?>'; - const anchor2title = self.anchor2 && self.anchor2 !== self ? Cast(self.anchor2, Doc, null).title : '<?>'; + const anchor1title = self.anchor1 && self.anchor1 !== self ? Cast(self.anchor1, Doc, null)?.title : '<?>'; + const anchor2title = self.anchor2 && self.anchor2 !== self ? Cast(self.anchor2, Doc, null)?.title : '<?>'; const relation = self.linkRelationship || 'to'; return `${anchor1title} (${relation}) ${anchor2title}`; }); |