diff --git a/packages/webapp/src/components/editor-page/index.tsx b/packages/webapp/src/components/editor-page/index.tsx index 5e521c86..89d9306d 100644 --- a/packages/webapp/src/components/editor-page/index.tsx +++ b/packages/webapp/src/components/editor-page/index.tsx @@ -38,7 +38,7 @@ const EditorPage = ({ isTryMode }: EditorPropsType): React.ReactElement => { if (fetchResult.error) { throw new Error(`User coild not be loaded: ${JSON.stringify(fetchResult.error)}`); } - result = fetchResult.map.role === 'owner' ? 'edition-owner' : 'edition-editor'; + result = fetchResult?.map?.role === 'owner' ? 'edition-owner' : 'edition-editor'; } } return result;