refactor: remove trivially inferred numEvents

This commit is contained in:
Carlos Valente
2025-05-19 22:09:28 +02:00
committed by Carlos Valente
parent 2f13d6c89e
commit 4ab9c81cb8
11 changed files with 5 additions and 20 deletions
@@ -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>