Skip to content

Commit

Permalink
[tree-view] Skip if modify events
Browse files Browse the repository at this point in the history
  • Loading branch information
asiloisad committed Jan 15, 2025
1 parent d0519e7 commit 333b34f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/tree-view/lib/directory.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,9 @@ class Directory {
// action once.
let shouldReload = false
for (let event of events) {
if (event.action === 'modified') {
continue
}
if (event.path === this.path && event.action === 'deleted') {
this.destroy()
break
Expand Down

0 comments on commit 333b34f

Please sign in to comment.