Browse Source

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

Daniel 1 year ago
parent
commit
1b20863f9c
1 changed files with 3 additions and 0 deletions
  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
 	data, err := gulu.JSON.MarshalIndentJSON(av, "", "\t") // TODO: single-line for production
 	if nil != err {
 	if nil != err {