From 3576c88e3c5bc9c6745c2f7fa70721c4057cae0e Mon Sep 17 00:00:00 2001 From: bobzel Date: Wed, 27 Jan 2021 10:42:42 -0500 Subject: fixed runtime error warning --- .../collectionFreeForm/CollectionFreeFormView.tsx | 21 +++++++++------------ src/client/views/nodes/VideoBox.tsx | 4 ++-- 2 files changed, 11 insertions(+), 14 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx index 6619205af..73375569f 100644 --- a/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx +++ b/src/client/views/collections/collectionFreeForm/CollectionFreeFormView.tsx @@ -1651,18 +1651,15 @@ class CollectionFreeFormViewPannableContents extends React.Component - {!this.props.presPinView ? (null) :
-
-
-
-
-
-
-
} - - ); + return !this.props.presPinView ? (null) : +
+
+
+
+
+
+
+
; } } diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx index bfac7dc1c..7f123757b 100644 --- a/src/client/views/nodes/VideoBox.tsx +++ b/src/client/views/nodes/VideoBox.tsx @@ -310,8 +310,8 @@ export class VideoBox extends ViewBoxAnnotatableComponentLoading : -
+ return !field ?
Loading
: +