Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Importing Markdown failed https://github.com/siyuan-note/siyuan/issues/16451

Daniel141653cf1365
diff --git a/kernel/model/file.go b/kernel/model/file.go
index 58e3304f16..dd7d7b7e9f 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)