mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 05:35:17 +00:00
fix: make e2e tests pass
This commit is contained in:
parent
1145721d48
commit
e511f029d6
@ -21,11 +21,12 @@ import { mergeFilter } from '../../../filter-provider/utils';
|
|||||||
import { useDataLoadingMode } from '../../../modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem';
|
import { useDataLoadingMode } from '../../../modules/blocks/data-blocks/details-multi/setDataLoadingModeSettingsItem';
|
||||||
|
|
||||||
export const useGetFilterOptions = () => {
|
export const useGetFilterOptions = () => {
|
||||||
const cm = useCollectionManager();
|
const dm = useDataSourceManager();
|
||||||
const getFilterFieldOptions = useGetFilterFieldOptions();
|
const getFilterFieldOptions = useGetFilterFieldOptions();
|
||||||
|
|
||||||
return (collectionName, dataSource?: string, usedInVariable?: boolean) => {
|
return (collectionName, dataSource?: string, usedInVariable?: boolean) => {
|
||||||
const fields = cm?.getCollectionFields(collectionName, dataSource);
|
const cm = dm?.getDataSource(dataSource)?.collectionManager;
|
||||||
|
const fields = cm?.getCollectionFields(collectionName);
|
||||||
const options = getFilterFieldOptions(fields, usedInVariable);
|
const options = getFilterFieldOptions(fields, usedInVariable);
|
||||||
return options;
|
return options;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user