Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
felixcicatt committed Oct 29, 2024
1 parent a0c32d0 commit 8cd3ea7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion odpc.client/src/composables/use-all-pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ref } from "vue";

const fetchPage = <T>(url: string, signal?: AbortSignal | undefined) =>
fetch(url, { headers: { "is-api": "true" }, signal })
.then((r) => (r.ok ? r : Promise.reject(r.status)))
.then((r) => (r.ok ? r : Promise.reject(r)))
.then((r) => r.json() as Promise<PagedResult<T>>);

const fetchAllPages = async <T>(url: string, signal?: AbortSignal | undefined): Promise<T[]> => {
Expand Down

0 comments on commit 8cd3ea7

Please sign in to comment.