diff --git a/frontend/src/routes/sessions/+page.svelte b/frontend/src/routes/sessions/+page.svelte
index 4f39038..d1638ec 100644
--- a/frontend/src/routes/sessions/+page.svelte
+++ b/frontend/src/routes/sessions/+page.svelte
@@ -15,7 +15,6 @@
import { newTableURLParams } from '$lib/service/tableURLParams';
import TableDropDownEllipsis from '$lib/components/table/TableDropDownEllipsis.svelte';
import DeleteAlert from '$lib/components/modal/DeleteAlert.svelte';
- import Button from '$lib/components/Button.svelte';
import BigButton from '$lib/components/BigButton.svelte';
// services
@@ -37,7 +36,14 @@
const refreshSessions = async () => {
try {
isTableLoading = true;
- const res = await api.user.getAllSessions(tableURLParams);
+ const params = {
+ currentPage: tableURLParams.currentPage,
+ perPage: tableURLParams.perPage,
+ sortBy: tableURLParams.sortBy,
+ sortOrder: tableURLParams.sortOrder,
+ search: tableURLParams.search
+ };
+ const res = await api.user.getAllSessions(params);
if (res.success) {
sessions = res.data.sessions;
return;
@@ -150,14 +156,12 @@
{/each}
revokeSession(deleteValues.id, deleteValues.current)}
bind:isVisible={isDeleteAlertVisible}
>
revokeAllSession()}