mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-31 14:34:42 -04:00
whitespace
This commit is contained in:
parent
aa3b732cb0
commit
460f508f79
@ -10,9 +10,7 @@ const request = {
|
|||||||
async safe<T>(funcCall: any, url: string, data: object = {}): Promise<RequestResponse<T>> {
|
async safe<T>(funcCall: any, url: string, data: object = {}): Promise<RequestResponse<T>> {
|
||||||
const response = await funcCall(url, data).catch(function (error: object) {
|
const response = await funcCall(url, data).catch(function (error: object) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
|
|
||||||
// Insert Generic Error Handling Here
|
// Insert Generic Error Handling Here
|
||||||
|
|
||||||
return { response: null, error, data: null };
|
return { response: null, error, data: null };
|
||||||
});
|
});
|
||||||
return { response, error: null, data: response.data };
|
return { response, error: null, data: response.data };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user