🎨 Adding row overwriting data after enabling sort in database https://github.com/siyuan-note/siyuan/issues/9599

This commit is contained in:
Daniel 2023-11-10 17:10:28 +08:00
parent b685754f61
commit bbbdda7ef0
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 4 additions and 6 deletions

View file

@ -712,7 +712,10 @@ func addAttributeViewBlock(blockID string, operation *Operation, tree *parse.Tre
return
}
} else {
blockID = ast.NewNodeID()
if "" == blockID {
blockID = ast.NewNodeID()
logging.LogWarnf("detached block id is empty, generate a new one [%s]", blockID)
}
}
attrView, err := av.ParseAttributeView(operation.AvID)