Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2023-01-30 10:48:21 +08:00
commit 70fc27012f
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)
}