Skip to content

Commit ec8881f

Browse files
Merge pull request #5500 from Countly/SER-1548
[SER-1548] [Deepscan] Token-manager. Loop with splice should be rewriten to preven out of bounds error
2 parents 8e5ae9c + 37d1614 commit ec8881f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend/express/public/core/token-manager/javascripts/countly.views.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
for (var j = 0; j < tableData.length; j++) {
124124
if (tableData[j]._id === countlyGlobal.auth_token) {
125125
tableData.splice(j, 1);
126+
j--;
126127
}
127128
}
128129
for (var i = 0; i < tableData.length; i++) {

0 commit comments

Comments
 (0)