mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +01:00
Fix role resolution issue.
This commit is contained in:
parent
f5600cbe6e
commit
8907452bc5
@ -42,7 +42,7 @@ const EditorPage = ({ isTryMode }: EditorPropsType): React.ReactElement => {
|
|||||||
if (!fetchResult.map) {
|
if (!fetchResult.map) {
|
||||||
throw new Error(`Map info could not be loaded. Info not present: ${JSON.stringify(fetchResult)}`);
|
throw new Error(`Map info could not be loaded. Info not present: ${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