Browse Source

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

Vanessa 2 years ago
parent
commit
70fc27012f
2 changed files with 1 additions and 2 deletions
  1. 1 0
      kernel/model/index.go
  2. 0 2
      kernel/model/search.go

+ 1 - 0
kernel/model/index.go

@@ -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
 	}

+ 0 - 2
kernel/model/search.go

@@ -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)
 }