mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-19 23:25:05 -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
3620
pnpm-lock.yaml
generated
3620
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load diff
|
@ -4,3 +4,7 @@ packages:
|
|||
- bin
|
||||
- doc
|
||||
- ui
|
||||
onlyBuiltDependencies:
|
||||
- '@scarf/scarf'
|
||||
- '@swc/core'
|
||||
- esbuild
|
||||
|
|
|
@ -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