fix: 修复 嵌套模式标题字段的判断 Close: #8386 (#8440)

This commit is contained in:
liaoxuezhi 2023-10-24 14:14:55 +08:00 committed by GitHub
parent b05b7daaf9
commit ab0f15bec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,11 @@ export const Column = types
get isPrimary() {
const table = getParent(self, 2) as any;
return table.filteredColumns[0]?.id === self.id;
return (
table.filteredColumns.find(
(column: any) => !column.type.startsWith('__')
)?.id === self.id
);
}
}))
.actions(self => ({