Skip to content

Commit 323daee

Browse files
committed
Fix Javascript issue when last row ("new row") gets selected
1 parent d6914ad commit 323daee

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Designs/HitCounterGui.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<!--
55
MIT License
66
7-
Copyright (c) 2019-2025 Peter Kirmeier
7+
Copyright (c) 2019-2026 Peter Kirmeier
88
99
Permission is hereby granted, free of charge, to any person obtaining a copy
1010
of this software and associated documentation files (the "Software"), to deal
@@ -194,6 +194,8 @@
194194
{
195195
let s = splits[i];
196196

197+
if (s == undefined) continue; // The last "new row" in V1 does not exist, ignore it
198+
197199
PrepareVisibleSplit(i, d, active_subsplit, splits);
198200

199201
// remember data from farthest point of the run

0 commit comments

Comments
 (0)