Move line into if

This commit is contained in:
RMidhunSuresh 2022-01-07 17:29:17 +05:30
parent c6484f1eac
commit 0a09a50ab9

View file

@ -230,8 +230,8 @@ export class Timeline {
const oldEntry = this._contextEntriesNotInTimeline.get(entry.id)
if (oldEntry) {
Timeline._entryUpdater(oldEntry, entry);
this._contextEntriesNotInTimeline.set(entry.id, entry);
}
this._contextEntriesNotInTimeline.set(entry.id, entry);
// Since this entry changed, all dependent entries should be updated
entry.contextForEntries?.forEach(e => this._updateEntry(e));
} catch (err) {