fix(popup): fix the issue where clicking on a relationship field does not open the popup (#5972)

This commit is contained in:
Zeke Zhang 2024-12-31 07:45:51 +08:00 committed by GitHub
parent 08130f333e
commit 695e2249ce
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -308,14 +308,7 @@ export const ReadPrettyInternalViewer: React.FC<ReadPrettyInternalViewerProps> =
// The recordData here is only provided when the popup is opened, not the current row record
<VariablePopupRecordProvider>
<WithoutTableFieldResource.Provider value={true}>
<NocoBaseRecursionField
schema={fieldSchema}
onlyRenderProperties
basePath={field.address}
filterProperties={(s) => {
return s['x-component'] === 'AssociationField.Viewer';
}}
/>
<NocoBaseRecursionField schema={fieldSchema} onlyRenderProperties basePath={field.address} />
</WithoutTableFieldResource.Provider>
</VariablePopupRecordProvider>
);