mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
fix: incorrect data filtering in popup Kanban using popup record variables (#6290)
This commit is contained in:
parent
9d3497811b
commit
55b70335cf
@ -15,6 +15,7 @@ import {
|
||||
useBlockRequestContext,
|
||||
useCollection,
|
||||
useCollection_deprecated,
|
||||
useParsedFilter,
|
||||
} from '@nocobase/client';
|
||||
import { Spin } from 'antd';
|
||||
import { isEqual } from 'lodash';
|
||||
@ -66,14 +67,17 @@ const InternalKanbanBlockProvider = (props) => {
|
||||
};
|
||||
|
||||
export const KanbanBlockProvider = (props) => {
|
||||
const params = { ...props.params };
|
||||
const { filter: parsedFilter } = useParsedFilter({
|
||||
filterOption: props.params?.filter,
|
||||
});
|
||||
const params = { ...props.params, filter: parsedFilter };
|
||||
|
||||
return (
|
||||
<BlockProvider name="kanban" {...props} params={params}>
|
||||
<InternalKanbanBlockProvider {...props} params={params} />
|
||||
</BlockProvider>
|
||||
);
|
||||
};
|
||||
|
||||
export const useKanbanBlockContext = () => {
|
||||
return useContext(KanbanBlockContext);
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user