fix: data scope not effect in gantt (#1716)

This commit is contained in:
katherinehhh 2023-04-17 18:05:24 +08:00 committed by GitHub
parent eeb07112c7
commit f5df009465
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,9 +71,10 @@ const InternalGanttBlockProvider = (props) => {
}; };
export const GanttBlockProvider = (props) => { export const GanttBlockProvider = (props) => {
const params = { filter: props.params.filter, tree: true, paginate: false, sort: props.fieldNames.start };
return ( return (
<BlockProvider {...props} params={{ tree: true, paginate: false, sort: props.fieldNames.start }}> <BlockProvider {...props} params={params}>
<TableBlockProvider {...props} params={{ tree: true, paginate: false, sort: props.fieldNames.start }}> <TableBlockProvider {...props} params={params}>
<InternalGanttBlockProvider {...props} /> <InternalGanttBlockProvider {...props} />
</TableBlockProvider> </TableBlockProvider>
</BlockProvider> </BlockProvider>