🐛 Unable to enter title immediately after creating database Fix https://github.com/siyuan-note/siyuan/issues/11143

This commit is contained in:
Daniel 2024-04-26 18:21:32 +08:00
parent 685b93f7ce
commit c7d9b18b80
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -194,7 +194,7 @@ func UpsertBlockRel(avID, blockID string) (ret bool) {
blockIDs = append(blockIDs, blockID)
blockIDs = gulu.Str.RemoveDuplicatedElem(blockIDs)
avBlocks[avID] = blockIDs
ret = oldLen != len(blockIDs)
ret = oldLen != len(blockIDs) && 0 != oldLen
data, err := msgpack.Marshal(avBlocks)
if nil != err {