fix(plugin-workflow): fix data scope on todo table block (#2176)
This commit is contained in:
parent
ef54fb0dd0
commit
650a580aca
@ -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'],
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user