No need to delete before update on map
This commit is contained in:
parent
41cf6460d0
commit
d2c7eec8e0
1 changed files with 0 additions and 1 deletions
|
@ -271,7 +271,6 @@ export class Timeline {
|
||||||
const newEntry = this._createEntryFromRelatedEntries(entry, relatedEntry);
|
const newEntry = this._createEntryFromRelatedEntries(entry, relatedEntry);
|
||||||
if (newEntry) {
|
if (newEntry) {
|
||||||
Timeline._entryUpdater(relatedEntry, newEntry);
|
Timeline._entryUpdater(relatedEntry, newEntry);
|
||||||
this._contextEntriesNotInTimeline.delete(relatedEntry.id);
|
|
||||||
this._contextEntriesNotInTimeline.set(newEntry.id, newEntry);
|
this._contextEntriesNotInTimeline.set(newEntry.id, newEntry);
|
||||||
relatedEntry.contextForEntries?.forEach(e => {
|
relatedEntry.contextForEntries?.forEach(e => {
|
||||||
this._remoteEntries.findAndUpdate(te => te.id === e.id, () => { return { reply: newEntry }; });
|
this._remoteEntries.findAndUpdate(te => te.id === e.id, () => { return { reply: newEntry }; });
|
||||||
|
|
Reference in a new issue