diff options
| author | Aubrey-Li <aubreylys@hotmail.com> | 2022-04-26 16:16:28 -0400 |
|---|---|---|
| committer | Aubrey-Li <aubreylys@hotmail.com> | 2022-04-26 16:16:28 -0400 |
| commit | 313c761f4207d55ebda05c18c2bd4a42539fdfe0 (patch) | |
| tree | 94d5716089bb5815fff02cc08d3b08f8ae1e30f8 /src/client/views/nodes/KeyValueBox.tsx | |
| parent | d935a8c1aad3fa6acaa4522aeb667afaaeddc60c (diff) | |
| parent | f4b6942fc1cad1f7e7ec7552e22f6c56bc158a77 (diff) | |
Merge branch master into presentation_upgrade
Diffstat (limited to 'src/client/views/nodes/KeyValueBox.tsx')
| -rw-r--r-- | src/client/views/nodes/KeyValueBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/KeyValueBox.tsx b/src/client/views/nodes/KeyValueBox.tsx index c44c8c828..4b1fbaf7d 100644 --- a/src/client/views/nodes/KeyValueBox.tsx +++ b/src/client/views/nodes/KeyValueBox.tsx @@ -67,7 +67,7 @@ export class KeyValueBox extends React.Component<FieldViewProps> { public static ApplyKVPScript(doc: Doc, key: string, kvpScript: KVPScript, forceOnDelegate?: boolean): boolean { const { script, type, onDelegate } = kvpScript; //const target = onDelegate ? Doc.Layout(doc.layout) : Doc.GetProto(doc); // bcz: TODO need to be able to set fields on layout templates - const target = forceOnDelegate || onDelegate ? doc : doc.proto || doc; + const target = forceOnDelegate || onDelegate || key.startsWith("_") ? doc : doc.proto || doc; let field: Field; if (type === "computed") { field = new ComputedField(script); |
