Skip to content

Commit

Permalink
[tree-view] Don't destroy things that do not need to be destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
savetheclocktower committed Jan 15, 2025
1 parent 89a13e1 commit d0519e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/tree-view/lib/directory.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ class Directory {
// action once.
let shouldReload = false
for (let event of events) {
if (event.path === this.path) {
if (event.path === this.path && event.action === 'deleted') {
this.destroy()
break
}
Expand Down

0 comments on commit d0519e7

Please sign in to comment.