diff options
author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-04-23 18:16:05 -0400 |
---|---|---|
committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-04-23 18:16:05 -0400 |
commit | f3aef5750b48f375b06540a85b46e404f607c37f (patch) | |
tree | a087e44631fc89fda91dc13631fe7c211358df57 /src/client/views/DocComponent.tsx | |
parent | 5ffb2f404a6a3da851c0fe7318b73f5c7723c3d7 (diff) |
Most of collection sub view
Diffstat (limited to 'src/client/views/DocComponent.tsx')
-rw-r--r-- | src/client/views/DocComponent.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/DocComponent.tsx b/src/client/views/DocComponent.tsx index 31282744b..d6562492f 100644 --- a/src/client/views/DocComponent.tsx +++ b/src/client/views/DocComponent.tsx @@ -6,7 +6,7 @@ export function DocComponent<P extends { Document: Doc }, T>(schemaCtor: (doc: D class Component extends React.Component<P> { //TODO This might be pretty inefficient if doc isn't observed, because computed doesn't cache then @computed - get Document() { + get Document(): T { return schemaCtor(this.props.Document); } } |