Skip to content

Commit b9f4063

Browse files
Merge pull request #3 from FitzwilliamMuseum/fix-fetch-all-ma_xrf_scans-limit
fix missing ma_xrf_scans by removing directus default page size
2 parents e652f84 + 597b0bc commit b9f4063

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

directus.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ export async function fetchMicrograph(id) {
2727
}
2828

2929
export async function fetchAllMaXrf() {
30-
const response = await fetch(apiBase + "items/ma_xrf_scans");
30+
const url = apiBase + "items/ma_xrf_scans?limit=-1";
31+
console.log("fetchAllMaXrf", url);
32+
const response = await fetch(url);
3133
return (await response.json()).data;
3234
}
3335

0 commit comments

Comments
 (0)