diff options
author | andrewdkim <adkim414@gmail.com> | 2019-08-12 15:18:19 -0400 |
---|---|---|
committer | andrewdkim <adkim414@gmail.com> | 2019-08-12 15:18:19 -0400 |
commit | bfe1be9425fed19be30ebf21bcdd7eadf5844c28 (patch) | |
tree | 0de5874c83a719616413c0c66a39b667a5f42267 /src/client/views/nodes/KeyValueBox.tsx | |
parent | c7e258d9d56990daec490b239e4103f9ca9d521a (diff) | |
parent | 3aea955ae56c1aa0611de09c4a013e9dc5c86c42 (diff) |
pulled from master
Diffstat (limited to 'src/client/views/nodes/KeyValueBox.tsx')
-rw-r--r-- | src/client/views/nodes/KeyValueBox.tsx | 1 |
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") { |