fix(sql-collection): can't select interface when setting fields (#4079)

This commit is contained in:
YANG QIA 2024-04-17 21:20:50 +08:00 committed by GitHub
parent 0291eb4ba4
commit 946debc737
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -89,12 +89,12 @@ export const FieldsConfigure = observer(
() =>
options
.filter((v) => !['relation'].includes(v.key))
.map((options, index) => ({
...options,
key: index,
.map((options, index1) => ({
key: index1,
label: compile(options.label),
options: options.children.map((option) => ({
...option,
options: options.children.map((option, index2) => ({
value: option.name,
key: `${index1}-${index2}`,
label: compile(option.label),
})),
})),