aboutsummaryrefslogtreecommitdiff
path: root/src/views/freeformcanvas/FreeFormCanvas.tsx
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-01-22 20:31:32 -0500
committerTyler Schicke <tyler_schicke@brown.edu>2019-01-22 20:31:32 -0500
commit8a1915a73d1d1173059a212db3b79f8efcdd9e9e (patch)
tree10fbad6a2b3a2dd4f178d062cc01f976244640aa /src/views/freeformcanvas/FreeFormCanvas.tsx
parentc67608a7eeeb6bdee27a8e7b4a8f6f8561db6004 (diff)
Temporarily got rid of dvm to draastically improve performance and reduce number of re-renders
Diffstat (limited to 'src/views/freeformcanvas/FreeFormCanvas.tsx')
-rw-r--r--src/views/freeformcanvas/FreeFormCanvas.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/views/freeformcanvas/FreeFormCanvas.tsx b/src/views/freeformcanvas/FreeFormCanvas.tsx
index de5e88fa1..e051fd97c 100644
--- a/src/views/freeformcanvas/FreeFormCanvas.tsx
+++ b/src/views/freeformcanvas/FreeFormCanvas.tsx
@@ -80,7 +80,7 @@ export class FreeFormCanvas extends React.Component<IProps> {
<div className="freeformcanvas" style={{ transform: store.Transform, transformOrigin: '50% 50%' }}>
<div className="node-container">
{this.props.store.Docs.map(doc => {
- return (<DocumentView key={doc.Id} dvm={new DocumentViewModel(doc)} />);
+ return (<DocumentView key={doc.Id} dvm={doc} />);
})}
</div>
</div>