Selaa lähdekoodia

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

Daniel 1 vuosi sitten
vanhempi
commit
726d2a9aa4
1 muutettua tiedostoa jossa 0 lisäystä ja 4 poistoa
  1. 0 4
      kernel/av/av.go

+ 0 - 4
kernel/av/av.go

@@ -186,7 +186,6 @@ func NewAttributeView(id string) (ret *AttributeView) {
 	ret = &AttributeView{
 	ret = &AttributeView{
 		Spec:      0,
 		Spec:      0,
 		ID:        id,
 		ID:        id,
-		Name:      "Untitled",
 		KeyValues: []*KeyValues{{Key: blockKey}},
 		KeyValues: []*KeyValues{{Key: blockKey}},
 		ViewID:    view.ID,
 		ViewID:    view.ID,
 		Views:     []*View{view},
 		Views:     []*View{view},
@@ -264,9 +263,6 @@ 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 {