fix: field assignment dropdown includes inherited fields (#6666)

This commit is contained in:
Katherine 2025-04-15 16:41:31 +08:00 committed by GitHub
parent 5534cafdc2
commit 0f21f483f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -727,7 +727,7 @@ export const useCustomFormItemInitializerFields = (options?: any) => {
const remove = useRemoveGridFormItem();
return currentFields
?.filter((field) => {
return field?.interface && field.interface !== 'snapshot' && field.type !== 'sequence';
return !field.inherit && field?.interface && field.interface !== 'snapshot' && field.type !== 'sequence';
})
?.map((field) => {
const interfaceConfig = getInterface(field.interface);