mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-07 00:13:53 +00:00
cursor fixes
- delete would use wrong index to relocate - cursor uses eventId instead of eventIndex - cursor would move on any item changes
This commit is contained in:
@@ -476,7 +476,7 @@ export class EventTimer extends Timer {
|
||||
|
||||
// update selected event index
|
||||
this.selectedEventIndex = this._eventlist.findIndex(
|
||||
(e) => e.id === eventId
|
||||
(e) => e.id === this.selectedEventId
|
||||
);
|
||||
|
||||
// reload titles if necessary
|
||||
|
||||
Reference in New Issue
Block a user