🐛 嵌入块每查询一次多一个结果 Fix https://github.com/siyuan-note/siyuan/issues/7196

This commit is contained in:
Liang Ding 2023-01-30 09:48:16 +08:00
parent eb71bd2083
commit 9a67a5e5b1
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 1 additions and 2 deletions

View file

@ -218,6 +218,7 @@ func updateEmbedBlockContent(embedBlockID string, queryResultBlocks []*EmbedBloc
return
}
embedBlock.Content = "" // 嵌入块每查询一次多一个结果 https://github.com/siyuan-note/siyuan/issues/7196
for _, block := range queryResultBlocks {
embedBlock.Content += block.Block.Markdown
}

View file

@ -50,8 +50,6 @@ type EmbedBlock struct {
}
func SearchEmbedBlock(embedBlockID, stmt string, excludeIDs []string, headingMode int, breadcrumb bool) (ret []*EmbedBlock) {
time.Sleep(util.FrontendQueueInterval)
WaitForWritingFiles()
return searchEmbedBlock(embedBlockID, stmt, excludeIDs, headingMode, breadcrumb)
}