diff --git a/src/plugins/PluginContainer.jsx b/src/plugins/PluginContainer.jsx index f2bb2369..e501d6b0 100644 --- a/src/plugins/PluginContainer.jsx +++ b/src/plugins/PluginContainer.jsx @@ -16,14 +16,20 @@ const PluginContainer = ({ config, ...props }) => { } // this will allow for future plugin types to be inserted in the PluginErrorBoundary + let renderer = null; switch (config.type) { case IFRAME_PLUGIN: - return ( + renderer = ( ); + break; + // istanbul ignore next: default isn't meaningful, just satisfying linter default: - return null; } + + return ( + renderer + ); }; export default PluginContainer;