fix: filter collapse

This commit is contained in:
xilesun 2024-10-30 20:20:36 +08:00
parent d6ad4a4358
commit f73fa8a477
2 changed files with 21 additions and 18 deletions

View File

@ -25,7 +25,9 @@ const commonOptions: any = {
useChildren() {
const cm = useCollectionManager_deprecated();
const associatedFields = useAssociatedFields();
const children = associatedFields.map((field) => ({
const children = associatedFields
.filter((field) => !['JSONDocObject', 'JSONDocArray'].includes(field.interface))
.map((field) => ({
name: field.key,
title: field.uiSchema?.title,
Component: 'AssociationFilterDesignerDisplayField',

View File

@ -111,6 +111,7 @@ export const getPopupPathFromParams = (params: PopupParams) => {
puid,
collection && 'collection',
collection,
// filterbytk is possibly to be 0
filterbytk !== null && filterbytk !== undefined && 'filterbytk',
filterbytk,
sourceid && 'sourceid',