mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-15 19:47:57 +01:00
Fix issue when map is shared for view
This commit is contained in:
parent
cc0de5e03c
commit
2d1d0a8790
@ -38,7 +38,7 @@ const EditorPage = ({ isTryMode }: EditorPropsType): React.ReactElement => {
|
|||||||
if (fetchResult.error) {
|
if (fetchResult.error) {
|
||||||
throw new Error(`Map information 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';
|
result = `edition-${fetchResult?.map?.role}`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
Loading…
Reference in New Issue
Block a user