fix: favorites fetching

This commit is contained in:
Roberto Tonino
2021-03-12 20:12:46 +01:00
parent 236bfbb77e
commit b2b85fb84e
3 changed files with 22 additions and 70 deletions

View File

@@ -5,7 +5,9 @@ export function fetchData(key, data = {}) {
url.searchParams.append(key, data[key])
})
return fetch(url.href).then(response => response.json())
return fetch(url.href)
.then(response => response.json())
.catch(() => {})
}
export function sendToServer(key, data) {