aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-08-04 13:55:36 -0400
committerbobzel <zzzman@gmail.com>2021-08-04 13:55:36 -0400
commit3c78da4d7724ca411486083176e394b18177231d (patch)
tree775ec9a4ffa6ebcb4755cd5859c528e8c5cbb7db
parent70f98c6d4d3e457a05e7c84260bf33580ee0166a (diff)
from last
-rw-r--r--src/client/views/collections/CollectionSubView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx
index e5f266acf..a9b5ce465 100644
--- a/src/client/views/collections/CollectionSubView.tsx
+++ b/src/client/views/collections/CollectionSubView.tsx
@@ -22,7 +22,7 @@ import ReactLoading from 'react-loading';
export interface SubCollectionViewProps extends CollectionViewProps {
CollectionView: Opt<CollectionView>;
- SetSubView: (subView: any) => void;
+ SetSubView?: (subView: any) => void;
}
export function CollectionSubView<T, X>(schemaCtor: (doc: Doc) => T, moreProps?: X) {
@@ -49,7 +49,7 @@ export function CollectionSubView<T, X>(schemaCtor: (doc: Doc) => T, moreProps?:
}
componentDidMount() {
- this.props.SetSubView(this);
+ this.props.SetSubView?.(this);
}
componentWillUnmount() {