From 0792f47193cd4326fda5ce3d8923769978067f60 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 30 Jan 2022 08:35:51 -0800 Subject: [PATCH] Fix zoom initialization --- packages/editor/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/editor/src/index.tsx b/packages/editor/src/index.tsx index 102e6a67..b9f2f867 100644 --- a/packages/editor/src/index.tsx +++ b/packages/editor/src/index.tsx @@ -58,7 +58,7 @@ const initMindplot = () => { readOnly: Boolean(global.readOnly || false), mapId: String(global.mapId), container: 'mindplot', - zoom: zoomParam | (global.userOptions != undefined ? Number.parseFloat(global.userOptions.zoom as string) : 1), + zoom: zoomParam || (global.userOptions?.zoom != undefined ? Number.parseFloat(global.userOptions.zoom as string) : 0.8), locale: global.locale, });