diff options
| author | bobzel <zzzman@gmail.com> | 2020-09-13 23:15:20 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-09-13 23:15:20 -0400 |
| commit | e02715b188a8fbaf47b5aef9e1bc892bf57627a6 (patch) | |
| tree | 094bba2edcfc8be2e5267cd0520aab544f674e73 /src/client/views/nodes/formattedText/DashDocView.tsx | |
| parent | d6094e43606763ef9499f3e1fd42ac619e493135 (diff) | |
got rid of textTemplates which were superfluous. fixed problems with stored Marks on templates when creating one by typing and the template is the default layout.
Diffstat (limited to 'src/client/views/nodes/formattedText/DashDocView.tsx')
| -rw-r--r-- | src/client/views/nodes/formattedText/DashDocView.tsx | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/client/views/nodes/formattedText/DashDocView.tsx b/src/client/views/nodes/formattedText/DashDocView.tsx index 90655bad6..ffa6e904a 100644 --- a/src/client/views/nodes/formattedText/DashDocView.tsx +++ b/src/client/views/nodes/formattedText/DashDocView.tsx @@ -132,14 +132,6 @@ export class DashDocView extends React.Component<IDashDocView> { if (!Doc.AreProtosEqual(finalLayout, dashDoc)) { finalLayout.rootDocument = dashDoc.aliasOf; } - const layoutKey = StrCast(finalLayout.layoutKey); - const finalKey = layoutKey && StrCast(finalLayout[layoutKey]).split("'")?.[1]; - if (finalLayout !== dashDoc && finalKey) { - const finalLayoutField = finalLayout[finalKey]; - if (finalLayoutField instanceof ObjectField) { - finalLayout[finalKey + "-textTemplate"] = ComputedField.MakeFunction(`copyField(this.${finalKey})`, { this: Doc.name }); - } - } this._finalLayout = finalLayout; this._resolvedDataDoc = Cast(finalLayout.resolvedDataDoc, Doc, null); return { finalLayout, resolvedDataDoc: Cast(finalLayout.resolvedDataDoc, Doc, null) }; |
