mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
fix(frontend): index out of bounds
This commit is contained in:
parent
b3a0c3d426
commit
c0ad73552f
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
|
- bin
|
||||||
- doc
|
- doc
|
||||||
- ui
|
- ui
|
||||||
|
onlyBuiltDependencies:
|
||||||
|
- '@scarf/scarf'
|
||||||
|
- '@swc/core'
|
||||||
|
- esbuild
|
||||||
|
|
|
@ -186,7 +186,7 @@ const paduserlist = (() => {
|
||||||
const tr = input.closest('tr');
|
const tr = input.closest('tr');
|
||||||
if (tr.length > 0) {
|
if (tr.length > 0) {
|
||||||
const index = tr.parent().children().index(tr);
|
const index = tr.parent().children().index(tr);
|
||||||
if (index >= 0) {
|
if (index >= 0 && rowsPresent.length > index) {
|
||||||
const userId = rowsPresent[index].data.id;
|
const userId = rowsPresent[index].data.id;
|
||||||
rowManagerMakeNameEditor($(this), userId);
|
rowManagerMakeNameEditor($(this), userId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue