diff options
author | bob <bcz@cs.brown.edu> | 2019-09-11 11:19:21 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-09-11 11:19:21 -0400 |
commit | 71594c0e64d2559f2a72bcbc5faee1db78eecfb8 (patch) | |
tree | 5f9be8a99e1fce36dbcb5dacbb0bee02138a9166 /src/client/views/ScriptBox.tsx | |
parent | f4df8cedd38dbf09e282315604ecaa6cde8185e5 (diff) |
added makeCustomView to promote documents to a new layout.
Diffstat (limited to 'src/client/views/ScriptBox.tsx')
-rw-r--r-- | src/client/views/ScriptBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/ScriptBox.tsx b/src/client/views/ScriptBox.tsx index 375a5cc93..1f3673390 100644 --- a/src/client/views/ScriptBox.tsx +++ b/src/client/views/ScriptBox.tsx @@ -68,7 +68,7 @@ export class ScriptBox extends React.Component<ScriptBoxProps> { </div> ); } - //let l = docList(this.source.data).length; if (l) { let ind = this.target.index !== undefined ? (this.target.index+1) % l : 0; this.target.index = ind; this.target.proto = getProto(docList(this.source.data)[ind]);} + //let l = docList(this.source[0].data).length; if (l) { let ind = this.target[0].index !== undefined ? (this.target[0].index+1) % l : 0; this.target[0].index = ind; this.target[0].proto = getProto(docList(this.source[0].data)[ind]);} public static EditButtonScript(doc: Doc, fieldKey: string, content: any, clientX: number, clientY: number) { let overlayDisposer: () => void = emptyFunction; const script = ScriptCast(doc[fieldKey]); |