mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-10 09:53:48 +00:00
refactor: remove trivially inferred numEvents
This commit is contained in:
committed by
Carlos Valente
parent
2f13d6c89e
commit
4ab9c81cb8
@@ -792,7 +792,6 @@ function optimisticDeleteEntries(entryIds: EntryId[], rundown: Rundown) {
|
||||
} else {
|
||||
const parent = entries[entry.parent] as OntimeBlock;
|
||||
parent.events = parent.events.filter((event) => event !== entry.id);
|
||||
parent.numEvents -= 1;
|
||||
}
|
||||
|
||||
delete entries[entry.id];
|
||||
|
||||
@@ -134,7 +134,7 @@ export default function BlockBlock(props: BlockBlockProps) {
|
||||
</div>
|
||||
<div className={style.metaEntry}>
|
||||
<div>Events</div>
|
||||
<div>{data.numEvents}</div>
|
||||
<div>{data.events.length}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user