Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-11-05 10:27:45 +08:00
parent bdff7a74c1
commit 8ada34f357
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -705,7 +705,7 @@ func (tx *Transaction) doChangeAttrViewLayout(operation *Operation) (ret *TxErr)
return
}
func ChangeAttrViewLayout(blockID, avID string, layout av.LayoutType) (err error) {
func ChangeAttrViewLayout(blockID, avID string, newLayout av.LayoutType) (err error) {
attrView, err := av.ParseAttributeView(avID)
if err != nil {
return
@ -716,7 +716,6 @@ func ChangeAttrViewLayout(blockID, avID string, layout av.LayoutType) (err error
return
}
newLayout := layout
if newLayout == view.LayoutType {
return
}