fix: required association field validate error after select value with variable in data scope (#5399)
Some checks are pending
auto-merge / push-commit (push) Waiting to run
Build Docker Image / build-and-push (push) Waiting to run
Build Pro Image / build-and-push (push) Waiting to run
deploy client docs / Build (push) Waiting to run
E2E / Build (push) Waiting to run
E2E / Core and plugins (push) Blocked by required conditions
E2E / plugin-workflow (push) Blocked by required conditions
E2E / plugin-workflow-approval (push) Blocked by required conditions
E2E / plugin-data-source-main (push) Blocked by required conditions
E2E / Comment on PR (push) Blocked by required conditions
NocoBase FrontEnd Test / frontend-test (18) (push) Waiting to run

This commit is contained in:
Katherine 2024-10-12 17:34:46 +08:00 committed by GitHub
parent 3a7574663f
commit 9f71eb7730
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -82,7 +82,8 @@ const InternalAssociationSelect = observer(
if ( if (
linkageFields.includes(fieldPath?.props?.name) && linkageFields.includes(fieldPath?.props?.name) &&
field.value && field.value &&
fieldPath?.indexes?.[0] === field?.indexes?.[0] fieldPath?.indexes?.[0] === field?.indexes?.[0] &&
fieldPath?.props?.name !== field.props.name
) { ) {
field.setValue(undefined); field.setValue(undefined);
setInnerValue(undefined); setInnerValue(undefined);