We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d255b5b commit 7511b3fCopy full SHA for 7511b3f
src/internal-plugins/bookmark.ts
@@ -137,7 +137,7 @@ export default class BookmarkInternalPlugin extends InternalPluginInjector {
137
138
if (requireApiVersion('1.7.2')) {
139
// TODO: Might improve the performance here.
140
- this.leaf.loadIfDeferred().then(setBookmarkIcon);
+ this.leaf?.loadIfDeferred().then(setBookmarkIcon);
141
} else {
142
setBookmarkIcon();
143
}
0 commit comments