mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 10:46:54 +00:00
fix: fix uiSchema undefined (#770)
This commit is contained in:
parent
4453a90977
commit
13dd078079
@ -24,7 +24,7 @@ export const useExportAction = () => {
|
||||
const { uiSchema, interface: fieldInterface } =
|
||||
getCollectionJoinField(`${name}.${es.dataIndex.join('.')}`) ?? {};
|
||||
es.enum = uiSchema?.enum?.map((e) => ({ value: e.value, label: e.label }));
|
||||
if (!es.enum && uiSchema.type === 'boolean') {
|
||||
if (!es.enum && uiSchema?.type === 'boolean') {
|
||||
es.enum = [
|
||||
{ value: true, label: t('Yes') },
|
||||
{ value: false, label: t('No') },
|
||||
|
Loading…
Reference in New Issue
Block a user