diff options
| author | bob <bcz@cs.brown.edu> | 2020-02-10 16:44:49 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2020-02-10 16:44:49 -0500 |
| commit | b8b58e1285bea8b03afb23e7abf1bbdd73f9b698 (patch) | |
| tree | 25c5db10c3b806e9456240213ff68506026d38ae /src | |
| parent | 1d9c316f397a8e6e5641e7d61e3fb6673554b479 (diff) | |
fixed nesting layouts of 'layout' key in text boxes.
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/util/RichTextSchema.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx index 043b277de..269a045a0 100644 --- a/src/client/util/RichTextSchema.tsx +++ b/src/client/util/RichTextSchema.tsx @@ -766,7 +766,7 @@ export class DashDocView { alias && DocServer.GetRefField(docid).then(async dashDocBase => { if (dashDocBase instanceof Doc) { const aliasedDoc = Doc.MakeAlias(dashDocBase, docid + alias); - aliasedDoc.layoutKey = "layout" + (node.attrs.fieldKey ? "_" + node.attrs.fieldKey : ""); + aliasedDoc.layoutKey = node.attrs.fieldKey === "layout" ? "layout" : "layout" + (node.attrs.fieldKey ? "_" + node.attrs.fieldKey : ""); self.doRender(aliasedDoc, removeDoc, node, view, getPos); } }); |
