mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47:56 +01:00
Add debug on user loading error.Add debug on user loading error.Add debug on user loading error.Add debug on user loading error.Add debug on user loading error.Add debug on user loading error.Add debug on user loading error.Add debug on user loading error.Add debug on user loading error.
This commit is contained in:
parent
375ff5941c
commit
27f580b4fa
@ -36,7 +36,7 @@ const EditorPage = ({ isTryMode }: EditorPropsType): React.ReactElement => {
|
|||||||
const fetchResult = fetchMapById(mapId);
|
const fetchResult = fetchMapById(mapId);
|
||||||
if (!fetchResult.isLoading) {
|
if (!fetchResult.isLoading) {
|
||||||
if (fetchResult.error) {
|
if (fetchResult.error) {
|
||||||
throw new Error(`User could not be loaded: ${JSON.stringify(fetchResult.error)} - ${fetchResult.error}`);
|
throw new Error(`User could not be loaded: ${JSON.stringify(fetchResult)}`);
|
||||||
}
|
}
|
||||||
result = fetchResult?.map?.role === 'owner' ? 'edition-owner' : 'edition-editor';
|
result = fetchResult?.map?.role === 'owner' ? 'edition-owner' : 'edition-editor';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user