fix: third party data source should support sortable in table column (#5293)

This commit is contained in:
Katherine 2024-09-20 14:49:09 +08:00 committed by GitHub
parent ed2d80dd26
commit 45b814862a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -156,7 +156,9 @@ export const tableColumnSettings = new SchemaSettings({
const { currentMode } = useAssociationFieldContext();
return (
interfaceCfg?.sortable === true && !currentMode && collection?.name === collectionField?.collectionName
interfaceCfg?.sortable === true &&
!currentMode &&
(collection?.name === collectionField?.collectionName || !collectionField?.collectionName)
);
},
useComponentProps() {