Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af92bf0

Browse files
committed
refactor: remove unnecessary conditional logic
1 parent 30613d3 commit af92bf0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/iframe-plugin/src/IframeRenderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import HTMLIframe from './HTMLIframe';
1717
*/
1818
const IframeRenderer: CustomBlockRenderer = function IframeRenderer(props) {
1919
const iframeProps = useHtmlIframeProps(props);
20-
return iframeProps ? React.createElement(HTMLIframe, iframeProps) : null;
20+
return React.createElement(HTMLIframe, iframeProps);
2121
};
2222

2323
/**

packages/table-plugin/src/TableRenderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import { HTMLTable } from './HTMLTable';
1717
*/
1818
const TableRenderer: CustomBlockRenderer = function TableRenderer(props) {
1919
const tableProps = useHtmlTableProps(props);
20-
return tableProps ? React.createElement(HTMLTable, tableProps) : null;
20+
return React.createElement(HTMLTable, tableProps);
2121
};
2222

2323
/**

0 commit comments

Comments
 (0)