Skip to content

Commit

Permalink
Remove logging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Dec 3, 2024
1 parent 1385f69 commit cfe462e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/routes/(app)/projects/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,13 @@
$: next = data.projects.next; // this will be an API url with a cursor
$: previous = data.projects.previous; // this will be an API url with a cursor
$: console.log(data.projects);
function paginate(u: Nullable<URL | string>) {
if (!u) return;
const pageUrl = new URL(u);
const gotoUrl = new URL($page.url);
// get the cursor out of the pageUrl, pass it to the gotoUrl
const cursor = pageUrl.searchParams.get("cursor");
if (cursor) gotoUrl.searchParams.set("cursor", cursor);
console.log(gotoUrl.toString());
goto(gotoUrl);
}
</script>
Expand Down

0 comments on commit cfe462e

Please sign in to comment.