From 67dc21baf7227e9d40576ae2f2f404d48e739b15 Mon Sep 17 00:00:00 2001 From: Rairn <958414905@qq.com> Date: Fri, 14 Apr 2023 23:34:58 +0800 Subject: [PATCH] fix: avoid errors --- packages/core/client/src/block-provider/TableBlockProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/client/src/block-provider/TableBlockProvider.tsx b/packages/core/client/src/block-provider/TableBlockProvider.tsx index b61c24717..89cb6ed3b 100644 --- a/packages/core/client/src/block-provider/TableBlockProvider.tsx +++ b/packages/core/client/src/block-provider/TableBlockProvider.tsx @@ -109,7 +109,7 @@ export const TableBlockProvider = (props) => { } let childrenColumnName = 'children'; if (collection?.tree && treeTable !== false) { - if (resourceName.includes('.')) { + if (resourceName?.includes('.')) { const f = getCollectionField(resourceName); if (f?.treeChildren) { childrenColumnName = f.name;