Skip to content

Commit 2e52659

Browse files
author
Michael Brenan
committed
improve indexing behavior after initialization
1 parent 8c61c05 commit 2e52659

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/data-index/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,7 @@ export class FullIndex extends Component {
174174
if (!PathFilters.markdown(file.path)) return { cached: false, skipped: true };
175175

176176
// The first load of a file is attempted from persisted cache; subsequent loads just use the importer.
177-
let exists = this.pages.has(file.path);
178-
if (exists) {
177+
if (this.pages.has(file.path) || this.initialized) {
179178
await this.import(file);
180179
return { cached: false, skipped: false };
181180
} else {

0 commit comments

Comments
 (0)