Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix empty tooltip is shown

ammarahm-edc927c97df6c0
diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/tooltip.js b/apps/mobile/src/views/Editor/tiny/toolbar/tooltip.js
index f649651ba..904f9f729 100644
--- a/apps/mobile/src/views/Editor/tiny/toolbar/tooltip.js
+++ b/apps/mobile/src/views/Editor/tiny/toolbar/tooltip.js
@@ -93,7 +93,7 @@ const Tooltip = () => {
padding: floating ? 5 : 0,
borderRadius: floating ? 5 : 0,
overflow: 'hidden',
- display: !group ? 'none' : 'flex',
+ display: !group || !group.type ? 'none' : 'flex',
position: floating ? 'absolute' : 'relative',
bottom: floating ? 50 : null,
width: group?.type === 'table' ? 45 * 5 + 15 : floating ? '100%' : '100%',