fix clubbing same events

This commit is contained in:
Rushikesh Tote 2022-06-15 16:20:04 +05:30
parent 52d9a4ebd6
commit 9120ebb7d3

View file

@ -438,7 +438,11 @@ export class WatchService {
event.collectionName === this.eventQueue[0].collectionName &&
event.type === this.eventQueue[0].type
) {
if (event.type === 'trash') {
event.paths = [...event.paths, ...this.eventQueue[0].paths];
} else {
event.files = [...event.files, ...this.eventQueue[0].files];
}
this.eventQueue.shift();
}
return event;