mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 09:26:14 -04:00
fix(frontend): index out of bounds
This commit is contained in:
parent
b3a0c3d426
commit
9276a001d8
3 changed files with 1576 additions and 2050 deletions
|
@ -186,7 +186,7 @@ const paduserlist = (() => {
|
|||
const tr = input.closest('tr');
|
||||
if (tr.length > 0) {
|
||||
const index = tr.parent().children().index(tr);
|
||||
if (index >= 0) {
|
||||
if (index >= 0 && rowsPresent.length > index) {
|
||||
const userId = rowsPresent[index].data.id;
|
||||
rowManagerMakeNameEditor($(this), userId);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue