Skip to content

Commit

Permalink
chore: clean up returned value
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVandivier committed Dec 18, 2024
1 parent 7d5e13c commit 59a4b99
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions services/plugin/src/Plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,20 +143,18 @@ export const Plugin = ({
)
}

if (pluginEntryPoint) {
return (
<iframe
ref={iframeRef}
src={pluginSource}
className={className}
width={clientWidth ? resizedWidth : width ?? '100%'}
height={height ?? resizedHeight + 'px'}
style={{
border: 'none',
}}
></iframe>
)
if (!pluginEntryPoint) {
return <></>
}

return <></>
return (
<iframe
ref={iframeRef}
src={pluginSource}
className={className}
width={clientWidth ? resizedWidth : width ?? '100%'}
height={height ?? resizedHeight + 'px'}
style={{ border: 'none' }}
/>
)
}

0 comments on commit 59a4b99

Please sign in to comment.