From cbffcf95d786838c6c6930affe3a744083969ea0 Mon Sep 17 00:00:00 2001 From: Zeke Zhang <958414905@qq.com> Date: Wed, 25 Sep 2024 09:07:49 +0800 Subject: [PATCH] fix(ellipsis): fix undefined error --- .../fields/component/Input/inputComponentSettings.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/core/client/src/modules/fields/component/Input/inputComponentSettings.tsx b/packages/core/client/src/modules/fields/component/Input/inputComponentSettings.tsx index 987aa7872a..b07da43354 100644 --- a/packages/core/client/src/modules/fields/component/Input/inputComponentSettings.tsx +++ b/packages/core/client/src/modules/fields/component/Input/inputComponentSettings.tsx @@ -25,7 +25,11 @@ export const ellipsisSettingsItem: SchemaSettingsItemType = { const { t } = useTranslation(); const schema = tableFieldSchema || fieldSchema; - const hidden = tableFieldSchema ? !filedInstanceList[0].readPretty : !formField.readPretty; + const hidden = tableFieldSchema + ? filedInstanceList[0] + ? !filedInstanceList[0].readPretty + : !tableFieldSchema['x-read-pretty'] + : !formField.readPretty; return { title: t('Ellipsis overflow content'),