mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-24 12:23:49 +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) {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user