aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-10-13 13:41:27 -0400
committerbobzel <zzzman@gmail.com>2022-10-13 13:41:27 -0400
commita26f7793c7626da5551774ac9911db1da34affec (patch)
tree4f1e7ff731653848effc903feb9c7506f6be24da /src/client/documents/Documents.ts
parenta40b276c3f6db4112e8c13f7bc47cf5e63772ef2 (diff)
added renaming of dashboards. fixed bug with pin button script.
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 3ae9a0751..2500eafab 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -1408,8 +1408,8 @@ export namespace DocUtils {
funcs &&
Object.keys(funcs).map(key => {
const cfield = ComputedField.WithoutComputed(() => FieldValue(doc[key]));
- if (ScriptCast(cfield)?.script.originalScript !== funcs[key] && funcs[key]) {
- doc[key] = ComputedField.MakeFunction(funcs[key], { dragData: DragManager.DocumentDragData.name }, { _readOnly_: true });
+ if (ScriptCast(cfield)?.script.originalScript !== funcs[key]) {
+ doc[key] = funcs[key] ? ComputedField.MakeFunction(funcs[key], { dragData: DragManager.DocumentDragData.name }, { _readOnly_: true }) : undefined;
}
});
return doc;