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

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 blockProps = {
collection: 'users_jobs',
@ -589,6 +589,7 @@ function Decorator({ children }) {
params: {
pageSize: 20,
sort: ['-createdAt'],
...params,
appends: ['user', 'node', 'workflow'],
except: ['node.config', 'workflow.config'],
},