File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import GitHash from './components/GitVersion';
2828import 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'
You can’t perform that action at this time.
0 commit comments