fix(plugin-workflow): fix data scope on todo table block (#2176)

This commit is contained in:
Junyi 2023-07-04 15:05:50 +07:00 committed by GitHub
parent ef54fb0dd0
commit 650a580aca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -580,7 +580,7 @@ function Drawer() {
); );
} }
function Decorator({ children }) { function Decorator({ params = {}, children }) {
const { collections, ...cm } = useCollectionManager(); const { collections, ...cm } = useCollectionManager();
const blockProps = { const blockProps = {
collection: 'users_jobs', collection: 'users_jobs',
@ -589,6 +589,7 @@ function Decorator({ children }) {
params: { params: {
pageSize: 20, pageSize: 20,
sort: ['-createdAt'], sort: ['-createdAt'],
...params,
appends: ['user', 'node', 'workflow'], appends: ['user', 'node', 'workflow'],
except: ['node.config', 'workflow.config'], except: ['node.config', 'workflow.config'],
}, },