From de78c882ccfbe7675eee5eb8d778fc367c82b96c Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Tue, 22 Mar 2022 00:15:27 -0300 Subject: [PATCH 1/3] Add additional debug info. --- .../src/components/editor-page/EditorOptionsBuilder.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/webapp/src/components/editor-page/EditorOptionsBuilder.ts b/packages/webapp/src/components/editor-page/EditorOptionsBuilder.ts index 2a00ab1e..a348692f 100644 --- a/packages/webapp/src/components/editor-page/EditorOptionsBuilder.ts +++ b/packages/webapp/src/components/editor-page/EditorOptionsBuilder.ts @@ -35,7 +35,11 @@ class EditorOptionsBuilder { } static loadMapId(): number { - return !AppConfig.isDevelopEnv() ? global.mapId : 11; + const result = !AppConfig.isDevelopEnv() ? global.mapId : 11; + if (result === undefined) { + throw Error(`Could not resolve mapId. Map Id: global.mapId: ${result} , global.mapTitle: ${global.mapTitle}, global.lockSession: ${global.lockSession}`); + } + return result; } } export default EditorOptionsBuilder; From 954b0cdbe21869e65c158cd3eae48ba768022f4e Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Tue, 22 Mar 2022 08:50:16 -0300 Subject: [PATCH 2/3] Remove overflow style --- packages/editor/src/global-styled.css | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/packages/editor/src/global-styled.css b/packages/editor/src/global-styled.css index d978078e..06d15195 100644 --- a/packages/editor/src/global-styled.css +++ b/packages/editor/src/global-styled.css @@ -9,18 +9,6 @@ html { font-size: initial; } -body { - -webkit-touch-callout: none; - -webkit-user-select: none; - -khtml-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - overflow: hidden; - margin: 0; - font-family: Arial, Helvetica, sans-serif; -} - div#mindplot { position: relative; top: 50px; From 56906fd2fdabf4b8325c68d10ee610a995fdffd5 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Tue, 22 Mar 2022 09:01:41 -0300 Subject: [PATCH 3/3] Improve log message. --- packages/mindplot/src/components/ImageIcon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/mindplot/src/components/ImageIcon.js b/packages/mindplot/src/components/ImageIcon.js index d5880742..6f704c7d 100644 --- a/packages/mindplot/src/components/ImageIcon.js +++ b/packages/mindplot/src/components/ImageIcon.js @@ -73,7 +73,7 @@ class ImageIcon extends Icon { static _getNextFamilyIconId(iconId) { const familyIcons = ImageIcon._getFamilyIcons(iconId); - $assert(familyIcons != null, 'Family Icon not found!'); + $assert(familyIcons != null, `Family Icon not found: ${iconId}`); let result = null; for (let i = 0; i < familyIcons.length && result == null; i++) {