refactor: support linkage rules in the details block to hide(reserved value) (#6031)

This commit is contained in:
Katherine 2025-01-10 09:35:10 +08:00 committed by GitHub
parent 9b8c274fc9
commit a1c0d6b969
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,7 +29,7 @@ export const useLinkageCollectionFieldOptions = (collectionName: string, readPre
{ label: t('Value'), value: ActionType.Value, selected: false, schema: {} },
].filter((v) => {
if (readPretty) {
return [ActionType.Visible, ActionType.None].includes(v.value);
return [ActionType.Visible, ActionType.None, ActionType.Hidden].includes(v.value);
}
return v;
});