Skip to content

Commit

Permalink
fix: avoid assigning File.name
Browse files Browse the repository at this point in the history
Close #2
  • Loading branch information
javier-godoy committed Nov 26, 2024
1 parent c73552f commit a28884d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ private void update(boolean createIfNotExists) {
if ($1) d.files = [... d.files, $0]; else return;
} else {
if (d.files.some((e,j)=>e.name==$0.name && j>i)) d.files=d.files.filter((e,j)=>e.name!=$0.name || j<=i);
delete $0.name;
d.files[i] = Object.assign(d.files[i], $0);
}
d.files = Array.from(d.files);
Expand Down

0 comments on commit a28884d

Please sign in to comment.