🐛 嵌入块每查询一次多一个结果 Fix https://github.com/siyuan-note/siyuan/issues/7196
This commit is contained in:
parent
eb71bd2083
commit
9a67a5e5b1
2 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue