mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
fix(Collapse): issue with data scope being cleared (#6782)
This commit is contained in:
parent
6808620a3d
commit
4547b7dd96
@ -1451,6 +1451,7 @@ export const useAssociationFilterBlockProps = () => {
|
|||||||
run,
|
run,
|
||||||
valueKey,
|
valueKey,
|
||||||
labelKey,
|
labelKey,
|
||||||
|
dataScopeFilter: filter,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
async function doReset({
|
async function doReset({
|
||||||
|
@ -41,6 +41,7 @@ export const AssociationFilterItem = withDynamicSchemaProps(
|
|||||||
handleSearchInput: _handleSearchInput,
|
handleSearchInput: _handleSearchInput,
|
||||||
params,
|
params,
|
||||||
run,
|
run,
|
||||||
|
dataScopeFilter,
|
||||||
valueKey: _valueKey,
|
valueKey: _valueKey,
|
||||||
labelKey: _labelKey,
|
labelKey: _labelKey,
|
||||||
defaultCollapse,
|
defaultCollapse,
|
||||||
@ -94,7 +95,7 @@ export const AssociationFilterItem = withDynamicSchemaProps(
|
|||||||
if (searchVisible || filter) {
|
if (searchVisible || filter) {
|
||||||
run({
|
run({
|
||||||
...params?.[0],
|
...params?.[0],
|
||||||
filter: undefined,
|
filter: dataScopeFilter,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
setSearchVisible(!searchVisible);
|
setSearchVisible(!searchVisible);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user