Update the if condition to check for existing data in array subtable

This commit is contained in:
rishipurwar1
2023-06-17 12:04:28 +05:30
parent 3e1c8a0033
commit a14646093a

View File

@@ -33,7 +33,11 @@ export default function EmptyTable() {
: false;
let contents = <></>;
if (hasData) {
if (
(tableSettings.isCollection !== false ||
tableSettings.subTableKey?.length) &&
hasData
) {
contents = (
<>
<div>