revert:association field log (#2840)
* revert: associotn field log * revert: associotn field log
This commit is contained in:
parent
6a7e7b3594
commit
dd892f5bae
@ -44,7 +44,6 @@ const InternalAssociationSelect = observer((props: AssociationSelectProps) => {
|
|||||||
const { objectValue = true } = props;
|
const { objectValue = true } = props;
|
||||||
const field: any = useField();
|
const field: any = useField();
|
||||||
const fieldSchema = useFieldSchema();
|
const fieldSchema = useFieldSchema();
|
||||||
console.log(fieldSchema);
|
|
||||||
const service = useServiceOptions(props);
|
const service = useServiceOptions(props);
|
||||||
const { options: collectionField } = useAssociationFieldContext();
|
const { options: collectionField } = useAssociationFieldContext();
|
||||||
const initValue = isVariable(props.value) ? undefined : props.value;
|
const initValue = isVariable(props.value) ? undefined : props.value;
|
||||||
|
@ -50,7 +50,6 @@ export function useAssociationFieldContext<F extends GeneralField>() {
|
|||||||
|
|
||||||
export default function useServiceOptions(props) {
|
export default function useServiceOptions(props) {
|
||||||
const { action = 'list', service, fieldNames } = props;
|
const { action = 'list', service, fieldNames } = props;
|
||||||
console.log(fieldNames);
|
|
||||||
const params = service?.params || {};
|
const params = service?.params || {};
|
||||||
const fieldSchema = useFieldSchema();
|
const fieldSchema = useFieldSchema();
|
||||||
const field = useField();
|
const field = useField();
|
||||||
|
@ -134,7 +134,6 @@ export const AssignedField = (props: AssignedFieldProps) => {
|
|||||||
},
|
},
|
||||||
[JSON.stringify(_.omit(props, 'value'))],
|
[JSON.stringify(_.omit(props, 'value'))],
|
||||||
);
|
);
|
||||||
console.log(fieldSchema, collectionField);
|
|
||||||
return (
|
return (
|
||||||
<VariableInput
|
<VariableInput
|
||||||
form={form}
|
form={form}
|
||||||
|
Loading…
Reference in New Issue
Block a user