mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47:56 +01:00
Fix issue when map is shared for view
This commit is contained in:
parent
748c1aa45f
commit
16be3acbdf
@ -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