From 2d1d0a879020118b26a8d10cacdff18541c8388b Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Wed, 9 Mar 2022 10:54:48 -0800 Subject: [PATCH] Fix issue when map is shared for view --- packages/webapp/src/components/editor-page/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webapp/src/components/editor-page/index.tsx b/packages/webapp/src/components/editor-page/index.tsx index c3a1b00d..4fa8c7bb 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(`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;