aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-06-20 20:23:13 -0400
committerbobzel <zzzman@gmail.com>2022-06-20 20:23:13 -0400
commit09a49a0df401964a1ff4a0defa4189de256f5417 (patch)
tree1ba1a1823c696fd93239d3a1098a395c663d2362
parentc415fb65e3d87b851015fb2ac7c41361609e0719 (diff)
removed breaking debugging code.
-rw-r--r--src/client/views/DocumentDecorations.tsx3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index d22fb5f01..18cf785b9 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -461,9 +461,6 @@ export class DocumentDecorations extends React.Component<{ PanelWidth: number, P
return ScriptField.MakeFunction(this._titleControlString.substring(1), { doc: Doc.name })!.script.run({ self: selected.rootDoc, this: selected.layoutDoc }, console.log).result?.toString() || "";
}
if (this._titleControlString.startsWith("#")) {
- const cfield = ComputedField.WithoutComputed(() => FieldValue(selected.props.Document.title));
- console.log(cfield);
- (cfield as any)?.script.run().result;
return Field.toString(selected.props.Document[this._titleControlString.substring(1)] as Field) || "-unset-";
}
return this._accumulatedTitle;