refactor(viewer): better syntax

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/900/head
Varun Patil 2023-10-28 13:39:41 -07:00
parent 1b378334f5
commit 994fea1b9a
1 changed files with 3 additions and 3 deletions

View File

@ -656,12 +656,12 @@ export default defineComponent({
// Iterate the heads to get the anchor and count.
const anchorDayId = this.list[0].dayid;
for (const row of timeline.heads.values()) {
for (const [dayId, row] of timeline.heads) {
// Compute this hear so we can do single pass
dayIds[iter++] = row.day.dayid;
dayIds[iter++] = dayId;
// Get the global index of the anchor
if (row.day.dayid == anchorDayId) {
if (dayId == anchorDayId) {
anchor = count;
}