From d63322239a1a6269962bbc9a4c0510e3bd9effad Mon Sep 17 00:00:00 2001 From: Ray Schamp <ray@scratch.mit.edu> Date: Mon, 14 Aug 2017 17:20:05 -0400 Subject: [PATCH] Make Blocks.isVisible true by default This shouldn't be required. --- src/containers/blocks.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/containers/blocks.jsx b/src/containers/blocks.jsx index 86d910897..63a762765 100644 --- a/src/containers/blocks.jsx +++ b/src/containers/blocks.jsx @@ -208,7 +208,7 @@ class Blocks extends React.Component { } Blocks.propTypes = { - isVisible: PropTypes.bool.isRequired, + isVisible: PropTypes.bool, options: PropTypes.shape({ media: PropTypes.string, zoom: PropTypes.shape({ @@ -260,6 +260,7 @@ Blocks.defaultOptions = { }; Blocks.defaultProps = { + isVisible: true, options: Blocks.defaultOptions }; -- GitLab