fix(ellipsis): fix undefined error
Some checks are pending
Build Docker Image / build-and-push (push) Waiting to run
Build Pro Image / build-and-push (push) Waiting to run
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-workflow-approval (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase FrontEnd Test / frontend-test (18) (push) Waiting to run

This commit is contained in:
Zeke Zhang 2024-09-25 09:07:49 +08:00
parent cd1d568922
commit cbffcf95d7

View File

@ -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'),