mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 06:37:56 +01:00
Fix error assignmenmt
This commit is contained in:
parent
5cb09c86dd
commit
926ab3ed55
@ -49,10 +49,10 @@ export const fetchMapById = (id: number): MapLoadResult => {
|
|||||||
|
|
||||||
// If the map can not be loaded, create an error object.
|
// If the map can not be loaded, create an error object.
|
||||||
let map: MapInfo;
|
let map: MapInfo;
|
||||||
let errorMsg: ErrorInfo;
|
let errorMsg: ErrorInfo = error;
|
||||||
if (!isLoading) {
|
if (!isLoading) {
|
||||||
// Sanitize error structure ...
|
// Sanitize error structure ...
|
||||||
if (error) {
|
if (errorMsg) {
|
||||||
errorMsg = Object.keys(error).length !== 0 ? error : null;
|
errorMsg = Object.keys(error).length !== 0 ? error : null;
|
||||||
}
|
}
|
||||||
// Seach for object...
|
// Seach for object...
|
||||||
|
Loading…
Reference in New Issue
Block a user