fix: formula select pick wrong field
This commit is contained in:
parent
12142f9654
commit
03a0ba57ff
@ -89,7 +89,7 @@
|
|||||||
"typescript": "5.1.3"
|
"typescript": "5.1.3"
|
||||||
},
|
},
|
||||||
"volta": {
|
"volta": {
|
||||||
"node": "20.9.0",
|
"node": "20.12.0",
|
||||||
"yarn": "1.22.19"
|
"yarn": "1.22.19"
|
||||||
},
|
},
|
||||||
"dependencies": {}
|
"dependencies": {}
|
||||||
|
@ -145,7 +145,10 @@ const replacePlaceholders = (inputStr, values) => {
|
|||||||
const useLabelOptions = (others) => {
|
const useLabelOptions = (others) => {
|
||||||
const fieldSchema = useFieldSchema();
|
const fieldSchema = useFieldSchema();
|
||||||
const { getField } = useCollection_deprecated();
|
const { getField } = useCollection_deprecated();
|
||||||
const collectionField = useMemo(() => getField(fieldSchema.name), [fieldSchema.name]);
|
const collectionField = useMemo(
|
||||||
|
() => getField(fieldSchema['x-collection-field']),
|
||||||
|
[fieldSchema['x-collection-field']],
|
||||||
|
);
|
||||||
const request = {
|
const request = {
|
||||||
resource: collectionField?.target,
|
resource: collectionField?.target,
|
||||||
action: 'list',
|
action: 'list',
|
||||||
|
Loading…
Reference in New Issue
Block a user