refactor(viewer): better syntax
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/900/head
parent
1b378334f5
commit
994fea1b9a
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue