fix(frontend): index out of bounds

This commit is contained in:
SamTV1998 2025-04-05 15:55:57 +02:00 committed by SamTV12345
parent b3a0c3d426
commit 9276a001d8
3 changed files with 1576 additions and 2050 deletions

3620
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -4,3 +4,7 @@ packages:
- bin
- doc
- ui
onlyBuiltDependencies:
- '@scarf/scarf'
- '@swc/core'
- esbuild

View file

@ -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);
}