mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +01:00
Improve message.
This commit is contained in:
parent
259ae2d8cb
commit
748c1aa45f
@ -36,7 +36,7 @@ const EditorPage = ({ isTryMode }: EditorPropsType): React.ReactElement => {
|
||||
const fetchResult = fetchMapById(mapId);
|
||||
if (!fetchResult.isLoading) {
|
||||
if (fetchResult.error) {
|
||||
throw new Error(`User could not be loaded: ${JSON.stringify(fetchResult)}`);
|
||||
throw new Error(`Map information could not be loaded: ${JSON.stringify(fetchResult)}`);
|
||||
}
|
||||
result = fetchResult?.map?.role === 'owner' ? 'edition-owner' : 'edition-editor';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user