fix saving note

This commit is contained in:
ammarahm-ed
2021-02-05 10:15:16 +05:00
parent cdf38bf5bf
commit 046b832620
8 changed files with 56 additions and 13 deletions

View File

@@ -549,7 +549,7 @@ export const ActionSheetComponent = ({
{note.type === 'notebook' && note.description
? note.description
: null}
{note.type === 'note'
{note.type === 'note' && item.headline
? note.headline[item.headline.length - 1] === '\n'
? note.headline.slice(0, note.headline.length - 1)
: note.headline