mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:45:18 +00:00
fix: disable cascading select component for association field in subtable (#4517)
This commit is contained in:
parent
9e8335572a
commit
38fa7f8f03
@ -62,8 +62,9 @@ export const useFieldModeOptions = (props?) => {
|
||||
: [
|
||||
{ label: t('Select'), value: 'Select' },
|
||||
{ label: t('Record picker'), value: 'Picker' },
|
||||
['m2m', 'o2m'].includes(collectionField.interface) && { label: t('Sub-table'), value: 'SubTable' },
|
||||
{ label: t('Cascade Select'), value: 'CascadeSelect' },
|
||||
!isTableField &&
|
||||
['m2m', 'o2m'].includes(collectionField.interface) && { label: t('Sub-table'), value: 'SubTable' },
|
||||
!isTableField && { label: t('Cascade Select'), value: 'CascadeSelect' },
|
||||
!isTableField && { label: t('Sub-form'), value: 'Nester' },
|
||||
{ label: t('Sub-form(Popover)'), value: 'PopoverNester' },
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user