瀏覽代碼

:art: Add Relation column to database table view https://github.com/siyuan-note/siyuan/issues/9888

Daniel 1 年之前
父節點
當前提交
1b20863f9c
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      kernel/av/av.go

+ 3 - 0
kernel/av/av.go

@@ -263,6 +263,9 @@ func SaveAttributeView(av *AttributeView) (err error) {
 			}
 		}
 	}
+	if "" == av.Name {
+		av.Name = "Untitled"
+	}
 
 	data, err := gulu.JSON.MarshalIndentJSON(av, "", "\t") // TODO: single-line for production
 	if nil != err {