fix(snapshot-field): remove depth limit (#1450)
This commit is contained in:
parent
66246df139
commit
2cfdfd2084
@ -33,7 +33,7 @@ export const AppendsTreeSelect: React.FC<AppendsTreeSelectProps> = (props) => {
|
||||
fieldPath: CollectionFieldOptions[] = [],
|
||||
): TreeOptionType[] => {
|
||||
const filter = (i: CollectionFieldOptions) =>
|
||||
!!i.target && !!i.interface && fieldPath.length < 3 && !fieldPath.find((p) => p.target === i.target);
|
||||
!!i.target && !!i.interface && !fieldPath.find((p) => p.target === i.target);
|
||||
return fields.filter(filter).map((i) => ({
|
||||
title: compile(i.uiSchema?.title) ?? i.name,
|
||||
value: fieldPath
|
||||
|
Loading…
Reference in New Issue
Block a user