Skip to content

Commit

Permalink
fix: revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxFrank13 committed Jan 16, 2024
1 parent 0523922 commit 5353b49
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/plugins/PluginContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
<PluginContainerIframe config={config} {...props} />
);
break;
// istanbul ignore next: default isn't meaningful, just satisfying linter
default:
return null;
}

return (
renderer
);
};

export default PluginContainer;
Expand Down

0 comments on commit 5353b49

Please sign in to comment.