Skip to content

Commit

Permalink
fix: check for issue when leaf is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWoelki committed Dec 4, 2024
1 parent d255b5b commit 7511b3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal-plugins/bookmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 7511b3f

Please sign in to comment.