From 141653cf1365567f4ae3b019123eb5eaed505624 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Wed, 26 Nov 2025 16:43:08 +0800 Subject: [PATCH] :bug: Importing Markdown failed https://github.com/siyuan-note/siyuan/issues/16451 Signed-off-by: Daniel <845765@qq.com> --- kernel/model/file.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/model/file.go b/kernel/model/file.go index 58e3304f1..dd7d7b7e9 100644 --- a/kernel/model/file.go +++ b/kernel/model/file.go @@ -2181,6 +2181,10 @@ func (box *Box) setSort(sortIDVals map[string]int) { } func pushFiletreeSortChanged(sortIDs map[string]int) { + if 1 > len(sortIDs) { + return + } + var childIDs []string for sortID := range sortIDs { childIDs = append(childIDs, sortID)