From 7e96e9d46952b4a9d11d093417e53ea63d326044 Mon Sep 17 00:00:00 2001 From: chenos Date: Wed, 27 Jan 2021 14:19:20 +0800 Subject: [PATCH] bugfix --- packages/app/src/components/views/Details.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/app/src/components/views/Details.tsx b/packages/app/src/components/views/Details.tsx index 50eea68b3..116bfa67b 100644 --- a/packages/app/src/components/views/Details.tsx +++ b/packages/app/src/components/views/Details.tsx @@ -26,8 +26,10 @@ function toGroups(fields: any[], { displayFields = [] }) { if (Array.isArray(displayFields) && displayFields.length && displayFields.indexOf(field.id) === -1) { return null; } - if (field.interface === 'description' && group.children.length) { - groups.push(group); + if (field.interface === 'description') { + if (group.children.length) { + groups.push(group); + } group = { title: field.title, tooltip: get(field, 'component.tooltip'),