diff options
author | bobzel <zzzman@gmail.com> | 2022-10-13 13:41:27 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-10-13 13:41:27 -0400 |
commit | a26f7793c7626da5551774ac9911db1da34affec (patch) | |
tree | 4f1e7ff731653848effc903feb9c7506f6be24da /src/client/documents/Documents.ts | |
parent | a40b276c3f6db4112e8c13f7bc47cf5e63772ef2 (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.ts | 4 |
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; |