aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-06-20 20:27:03 -0400
committerbobzel <zzzman@gmail.com>2022-06-20 20:27:03 -0400
commita6fc21bf52e0e265d74870b4c5abc2bcb00fd386 (patch)
treeb65e5b83c0d9a3945bd6ea9e304283e806cddf99
parent9f3a7db18b9461bcc228c9fd554c610da255dab8 (diff)
parent09a49a0df401964a1ff4a0defa4189de256f5417 (diff)
Merge branch 'master' into temporalmedia-mehek
-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;