Skip to content

Commit 04d5d8c

Browse files
committed
corrected typo
1 parent 63315a6 commit 04d5d8c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

client/src/SearchPage.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import GitHash from './components/GitVersion';
2828
import PageTitle from './components/PageTitle';
2929

3030
// Add fecthRetry utility: behaves like fetch but retries up to `retries` times on network errors or 5xx responses
31-
async function fecthRetry(input, init = undefined, retries = 3, retryDelay = 500) {
31+
async function fetchRetry(input, init = undefined, retries = 3, retryDelay = 500) {
3232
let lastError;
3333
for (let attempt = 1; attempt <= retries; attempt++) {
3434
try {
@@ -84,7 +84,7 @@ const SearchPage = () => {
8484

8585
const getLatestSamples = async () => {
8686
try {
87-
const response = await fecthRetry('./data-api/rest/latestSamples');
87+
const response = await fetchRetry('./data-api/rest/latestSamples');
8888
if (response.ok) {
8989
const data = await response.json();
9090
//console.log(data.value);
@@ -136,7 +136,7 @@ const SearchPage = () => {
136136
setSearchCompleted(false);
137137
//console.log('searchQuery:', searchQuery);
138138
try {
139-
const response = await fecthRetry('./data-api/rest/findSamples', {
139+
const response = await fetchRetry('./data-api/rest/findSamples', {
140140
method: 'POST',
141141
headers: {
142142
'Content-Type': 'application/json'

0 commit comments

Comments
 (0)