fix(core): some doc missing in search result (#7818)

This commit is contained in:
EYHN
2024-08-09 10:37:24 +00:00
parent eef9afd3ed
commit b993ab04df

View File

@@ -79,7 +79,7 @@ async function crawlingDocData({
(
yRootDoc.getMap('meta').get('pages') as YArray<YMap<any>> | undefined
)?.forEach(page => {
if (page.get('id') === storageDocId) {
if (page.get('id') === docId) {
docExists = !(page.get('trash') ?? false);
}
});