diff options
author | bob <bcz@cs.brown.edu> | 2019-08-23 14:09:07 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-08-23 14:09:07 -0400 |
commit | d0601e3e60b14ace35a55d4c629d700be93fe984 (patch) | |
tree | fede51645827656e2835a07758b367f5234af6c6 /src | |
parent | a050cf846fe0d78a922268d33a9024e95a7a5a09 (diff) |
fixed template
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/CollectionViewChromes.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionViewChromes.tsx b/src/client/views/collections/CollectionViewChromes.tsx index 15bef39b3..4c536fabe 100644 --- a/src/client/views/collections/CollectionViewChromes.tsx +++ b/src/client/views/collections/CollectionViewChromes.tsx @@ -290,7 +290,7 @@ export class CollectionViewBaseChrome extends React.Component<CollectionViewChro commands = [{ // title: "set content", script: "getProto(this.target).data = aliasDocs(this.source.map(async p => await p));", params: ["target", "source"], // bcz: doesn't look like we can do async stuff in scripting... title: "set content", script: "getProto(this.target).data = aliasDocs(this.source);", params: ["target", "source"], - immediate: (draggedDocs: Doc[]) => Doc.GetProto(this.props.CollectionView.props.Document).data = new List<Doc>(draggedDocs) + immediate: (draggedDocs: Doc[]) => Doc.GetProto(this.props.CollectionView.props.Document).data = new List<Doc>(draggedDocs.map((d: any) => Doc.MakeAlias(d))) }, { title: "set template", script: "this.target.childLayout = this.source ? this.source[0] : undefined", params: ["target", "source"], |