diff options
author | monikahedman <monika_hedman@brown.edu> | 2019-08-12 12:14:43 -0400 |
---|---|---|
committer | monikahedman <monika_hedman@brown.edu> | 2019-08-12 12:14:43 -0400 |
commit | a41c19a43537a1da49b4871f8777a9a5fa0e3373 (patch) | |
tree | 8c2e6755fe39659c174e280b5efb67a8337293b9 /src/client/views/nodes/KeyValueBox.tsx | |
parent | 8c4b8ae12fb418d38e5aab6c12514913f1565bb0 (diff) | |
parent | 3aea955ae56c1aa0611de09c4a013e9dc5c86c42 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into checkbox
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") { |