fix: third party data source should support sortable in table column (#5293)
Some checks failed
auto-merge / push-commit (push) Has been cancelled
Build Docker Image / build-and-push (push) Has been cancelled
Build Pro Image / build-and-push (push) Has been cancelled
deploy client docs / Build (push) Has been cancelled
E2E / Build (push) Has been cancelled
NocoBase FrontEnd Test / frontend-test (18) (push) Has been cancelled
E2E / Core and plugins (push) Has been cancelled
E2E / plugin-workflow (push) Has been cancelled
E2E / plugin-workflow-approval (push) Has been cancelled
E2E / plugin-data-source-main (push) Has been cancelled
E2E / Comment on PR (push) Has been cancelled

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(); const { currentMode } = useAssociationFieldContext();
return ( return (
interfaceCfg?.sortable === true && !currentMode && collection?.name === collectionField?.collectionName interfaceCfg?.sortable === true &&
!currentMode &&
(collection?.name === collectionField?.collectionName || !collectionField?.collectionName)
); );
}, },
useComponentProps() { useComponentProps() {