mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-22 19:53:49 +01:00
Add more details to error loading for users.
This commit is contained in:
parent
ab88adad4d
commit
375ff5941c
@ -1,21 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg width="24px" height="24px" viewBox="0 0 24 24" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<g transform="translate(0 -1028.4)">
|
||||
<path d="m8 1030.4 8 1v19l-8-1z" fill="#ecf0f1"/>
|
||||
<path d="m2 1031.4 6-1v19l-6 1z" fill="#bdc3c7"/>
|
||||
<path d="m16 1031.4 6-1v19l-6 1z" fill="#bdc3c7"/>
|
||||
<path d="m3 1032.4 5-1v17l-5 1z" fill="#27ae60"/>
|
||||
<path d="m8 1031.4 8 1v17l-8-1z" fill="#2ecc71"/>
|
||||
<path d="m13 1c-1.657 0-3 1.3432-3 3s1.343 3 3 3 3-1.3432 3-3-1.343-3-3-3zm0 2c0.552 0 1 0.4477 1 1s-0.448 1-1 1-1-0.4477-1-1 0.448-1 1-1z" transform="translate(0 1028.4)" fill="#c0392b"/>
|
||||
<path d="m21 1048.4-5 1v-17l5-1z" fill="#27ae60"/>
|
||||
<path d="m5.6875 1031.8-2.3125 0.5 4.625 4.9v-2.9l-2.3125-2.5z" fill="#f39c12"/>
|
||||
<path d="m21 1046.4-5 1v-6l5-3z" fill="#f39c12"/>
|
||||
<path d="m21 1048.4-5 1v-6l5-3z" fill="#2980b9"/>
|
||||
<path d="m8 1042.4 8-1v6l-8-1z" fill="#f1c40f"/>
|
||||
<path d="m8 1044.4 8-1v6l-8-1z" fill="#3498db"/>
|
||||
<path d="m3 1045.4 5-3v4l-5 1z" fill="#f39c12"/>
|
||||
<path d="m3 1047.4 5-3v4l-5 1z" fill="#2980b9"/>
|
||||
<path d="m8 8.8008v-2.8985l4 8.6597h-1.469z" transform="translate(0 1028.4)" fill="#f1c40f"/>
|
||||
<path d="m13 1028.4c-2.209 0-4 1.8-4 4 0 0.7 0.1908 1.3 0.5156 1.9 0.0539 0.1 0.1105 0.2 0.1719 0.3l3.3125 5.8 3.312-5.8c0.051-0.1 0.095-0.2 0.141-0.2l0.031-0.1c0.325-0.6 0.516-1.2 0.516-1.9 0-2.2-1.791-4-4-4zm0 2c1.105 0 2 0.9 2 2s-0.895 2-2 2-2-0.9-2-2 0.895-2 2-2z" fill="#e74c3c"/>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.6 KiB |
@ -36,7 +36,7 @@ const EditorPage = ({ isTryMode }: EditorPropsType): React.ReactElement => {
|
||||
const fetchResult = fetchMapById(mapId);
|
||||
if (!fetchResult.isLoading) {
|
||||
if (fetchResult.error) {
|
||||
throw new Error(`User coild not be loaded: ${JSON.stringify(fetchResult.error)}`);
|
||||
throw new Error(`User could not be loaded: ${JSON.stringify(fetchResult.error)} - ${fetchResult.error}`);
|
||||
}
|
||||
result = fetchResult?.map?.role === 'owner' ? 'edition-owner' : 'edition-editor';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user