Skip to content

Commit

Permalink
fix: avoid edge cases (#628)
Browse files Browse the repository at this point in the history
  • Loading branch information
Moyf authored Dec 13, 2024
1 parent 3fee512 commit 0826679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ export default class IconizePlugin extends Plugin {
}

for (const openedFile of getAllOpenedFiles(this)) {
if (openedFile.path !== file.path) {
if (!file || !openedFile || openedFile.path !== file.path) {
continue;
}

Expand Down

0 comments on commit 0826679

Please sign in to comment.