From 5353b4958543854eadbabf28895f748dd6d6cd77 Mon Sep 17 00:00:00 2001 From: Maxwell Frank Date: Tue, 16 Jan 2024 13:07:43 +0000 Subject: [PATCH] fix: revert changes --- src/plugins/PluginContainer.jsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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;