Fix: no data placeholder (#1889)

This commit is contained in:
Shailesh Parmar 2021-12-22 19:01:09 +05:30 committed by GitHub
parent be06a77fdc
commit ce88b18654
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ type Props = {
const SampleDataTable: FunctionComponent<Props> = ({ sampleData }: Props) => {
return (
<div className="tw-table-responsive">
{sampleData?.rows && sampleData?.columns ? (
{sampleData?.rows?.length && sampleData?.columns?.length ? (
<table
className="tw-min-w-max tw-w-full tw-table-auto"
data-testid="sample-data-table">