From f310196937e4a8bee74bf0e12645c0fb86c65ce6 Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Sat, 29 Jan 2022 19:54:39 +0530 Subject: [PATCH] Enable markdown by default Signed-off-by: Ajay Bura --- src/app/organisms/navigation/DrawerHeader.jsx | 2 +- src/client/state/settings.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/organisms/navigation/DrawerHeader.jsx b/src/app/organisms/navigation/DrawerHeader.jsx index 98a3eb4..67486b6 100644 --- a/src/app/organisms/navigation/DrawerHeader.jsx +++ b/src/app/organisms/navigation/DrawerHeader.jsx @@ -41,7 +41,7 @@ function DrawerHeader({ selectedTab, spaceId }) { e.preventDefault(); openReusableContextMenu( 'bottom', - getEventCords(e, '.drawer-header__btn'), + getEventCords(e, '.header'), (closeMenu) => , ); }; diff --git a/src/client/state/settings.js b/src/client/state/settings.js index 011d0bd..ab4ae6f 100644 --- a/src/client/state/settings.js +++ b/src/client/state/settings.js @@ -79,8 +79,8 @@ class Settings extends EventEmitter { if (typeof this.isMarkdown === 'boolean') return this.isMarkdown; const settings = getSettings(); - if (settings === null) return false; - if (typeof settings.isMarkdown === 'undefined') return false; + if (settings === null) return true; + if (typeof settings.isMarkdown === 'undefined') return true; return settings.isMarkdown; }