Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Keep the width when duplicating database table view field https://github.com/siyuan-note/siyuan/issues/11552

Danieldcb1237af386
diff --git a/kernel/sql/av.go b/kernel/sql/av.go
index abc6579f67..fd6d84b3c3 100644
--- a/kernel/sql/av.go
+++ b/kernel/sql/av.go
@@ -59,6 +59,8 @@ func RenderAttributeViewTable(attrView *av.AttributeView, view *av.View, query s
for _, col := range view.Table.Columns {
key, getErr := attrView.GetKey(col.ID)
if nil != getErr {
+ // 找不到字段则在视图中删除
+
switch view.LayoutType {
case av.LayoutTypeTable:
for i, column := range view.Table.Columns {