This commit is contained in:
Timothy Jaeryang Baek
2026-07-17 00:00:24 -04:00
parent 346b99c383
commit 30c91e46e5
2 changed files with 138 additions and 58 deletions
+6 -1
View File
@@ -97,7 +97,8 @@ export const searchNotes = async (
viewOption: string | null = null,
permission: string | null = null,
sortKey: string | null = null,
page: number | null = null
page: number | null = null,
direction: string | null = null
) => {
let error = null;
const searchParams = new URLSearchParams();
@@ -118,6 +119,10 @@ export const searchNotes = async (
searchParams.append('order_by', sortKey);
}
if (direction !== null) {
searchParams.append('direction', direction);
}
if (page !== null) {
searchParams.append('page', `${page}`);
}