diff --git a/src/internal-plugins/bookmark.ts b/src/internal-plugins/bookmark.ts index 602ba938..b4fa6461 100644 --- a/src/internal-plugins/bookmark.ts +++ b/src/internal-plugins/bookmark.ts @@ -137,7 +137,7 @@ export default class BookmarkInternalPlugin extends InternalPluginInjector { if (requireApiVersion('1.7.2')) { // TODO: Might improve the performance here. - this.leaf.loadIfDeferred().then(setBookmarkIcon); + this.leaf?.loadIfDeferred().then(setBookmarkIcon); } else { setBookmarkIcon(); }