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 } =
|
const { uiSchema, interface: fieldInterface } =
|
||||||
getCollectionJoinField(`${name}.${es.dataIndex.join('.')}`) ?? {};
|
getCollectionJoinField(`${name}.${es.dataIndex.join('.')}`) ?? {};
|
||||||
es.enum = uiSchema?.enum?.map((e) => ({ value: e.value, label: e.label }));
|
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 = [
|
es.enum = [
|
||||||
{ value: true, label: t('Yes') },
|
{ value: true, label: t('Yes') },
|
||||||
{ value: false, label: t('No') },
|
{ value: false, label: t('No') },
|
||||||
|
Loading…
Reference in New Issue
Block a user