aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/KeyValueBox.tsx
diff options
context:
space:
mode:
authorab <abdullah_ahmed@brown.edu>2019-08-12 12:24:51 -0400
committerab <abdullah_ahmed@brown.edu>2019-08-12 12:24:51 -0400
commit73ac98d53b80230bb085d71b61254f6c24a3e397 (patch)
tree43b13e482c29ce6a3db1108aca056581495303d7 /src/client/views/nodes/KeyValueBox.tsx
parentb8ab5a823ae22b021c09dfd713b77211a51b3eae (diff)
parent3aea955ae56c1aa0611de09c4a013e9dc5c86c42 (diff)
merged
Diffstat (limited to 'src/client/views/nodes/KeyValueBox.tsx')
-rw-r--r--src/client/views/nodes/KeyValueBox.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/nodes/KeyValueBox.tsx b/src/client/views/nodes/KeyValueBox.tsx
index f10079169..0d4b377dd 100644
--- a/src/client/views/nodes/KeyValueBox.tsx
+++ b/src/client/views/nodes/KeyValueBox.tsx
@@ -73,6 +73,7 @@ export class KeyValueBox extends React.Component<FieldViewProps> {
public static ApplyKVPScript(doc: Doc, key: string, kvpScript: KVPScript): boolean {
const { script, type, onDelegate } = kvpScript;
+ //const target = onDelegate ? (doc.layout instanceof Doc ? doc.layout : doc) : Doc.GetProto(doc); // bcz: need to be able to set fields on layout templates
const target = onDelegate ? doc : Doc.GetProto(doc);
let field: Field;
if (type === "computed") {