Add new fragment to list of updated fragment list

This commit is contained in:
Danila Fedorin 2021-09-08 14:48:19 -07:00
parent 021844bf0a
commit 3ce2d0777d

View file

@ -257,6 +257,10 @@ export class GapWriter {
startFill.entries.push(...endFill.entries); startFill.entries.push(...endFill.entries);
startFill.updatedEntries.push(...endFill.updatedEntries); startFill.updatedEntries.push(...endFill.updatedEntries);
startFill.fragments.push(...endFill.fragments); startFill.fragments.push(...endFill.fragments);
if (!startFill.fragments.includes(newFragment)) {
// We created the fragment so it is updated.
startFill.fragments.push(newFragment);
}
return startFill; return startFill;
} }