From c7d9b18b80b0f12c7b26102f3c422f50a132955d Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Fri, 26 Apr 2024 18:21:32 +0800 Subject: [PATCH] :bug: Unable to enter title immediately after creating database Fix https://github.com/siyuan-note/siyuan/issues/11143 --- kernel/av/mirror.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/av/mirror.go b/kernel/av/mirror.go index bd9db29e0..88786d6f5 100644 --- a/kernel/av/mirror.go +++ b/kernel/av/mirror.go @@ -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 {