Fixed empty tooltip issue (#3670)

This commit is contained in:
Kavin Venkatachalam 2022-07-27 09:56:09 +05:30 committed by GitHub
parent f482cc5f2a
commit ffc2eb93fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -824,6 +824,7 @@ export function setTablePageIndex(_ref, tableId, index) {
}
export function renderTooltip({ props, text }) {
if (text === '') return <></>;
return (
<Tooltip id="button-tooltip" {...props}>
{text}