Skip to content

Commit

Permalink
refactor(viewer): better syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <radialapps@gmail.com>
  • Loading branch information
pulsejet committed Oct 28, 2023
1 parent 1b37833 commit 994fea1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/viewer/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 994fea1

Please sign in to comment.