Фронт
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { deepNormalize } from '../utils/normalize';
|
||||
const API_BASE = '/api';
|
||||
|
||||
export class HttpClient {
|
||||
@@ -44,7 +45,8 @@ export class HttpClient {
|
||||
throw new Error(errorMessage);
|
||||
}
|
||||
|
||||
return response.json();
|
||||
const jsonData = await response.json();
|
||||
return deepNormalize(jsonData);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user