fix: changing the sort of a paged list keeps you on the same page number (#35303)

On page 4 of Admin > Users, Admin > Evaluations > Feedback, the workspace Models, Prompts and Skills lists or a channel's member list, clicking a column header showed page 4 of the new order, somewhere in the middle of the list. Changing the sort now goes back to page 1, like the group member list already does.

Fixes #35302
This commit is contained in:
Classic298 authored and GitHub committed 2026-11-30 18:29:52 +04:00
1 parent 836a434dc9
commit 820b022061
6 files changed
+6

No files matched your search

@@ -55,6 +55,7 @@
orderBy = key;
direction = 'asc';
}
page = 1;
};
let showFeedbackModal = false;
@@ -86,6 +86,7 @@
orderBy = key;
direction = 'asc';
}
page = 1;
};
const roleClass = (role) => {
@@ -62,6 +62,7 @@
orderBy = key;
direction = 'asc';
}
page = 1;
};
const getUserList = async () => {
@@ -158,6 +158,7 @@
sortKey = key;
sortDirection = key === 'updated_at' ? 'desc' : 'asc';
}
page = 1;
};
const openModel = (model) => {
@@ -172,6 +172,7 @@
sortKey = key;
sortDirection = key === 'updated_at' ? 'desc' : 'asc';
}
page = 1;
};
const openPrompt = (prompt) => {
@@ -243,6 +243,7 @@
sortKey = key;
sortDirection = key === 'updated_at' ? 'desc' : 'asc';
}
page = 1;
};
const openSkill = (skill) => {