From f2732bcab7110eb0a0898738eb2b6a7328bf1a74 Mon Sep 17 00:00:00 2001 From: zadam Date: Sun, 9 Jan 2022 09:12:21 +0100 Subject: [PATCH] fix display of children notes in an empty note, closes #2536 --- src/views/share/page.ejs | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/src/views/share/page.ejs b/src/views/share/page.ejs index a9dde1f83..b7506b853 100644 --- a/src/views/share/page.ejs +++ b/src/views/share/page.ejs @@ -40,10 +40,7 @@
This note was originally clipped from "><%= note.getLabelValue("pageUrl") %>
<% } %> - <% if (note.type === 'book') { %> - <% } else if (isEmpty) { %> -

This note has no content.

- <% } else { %> + <% if (!isEmpty) { %>
<%- content %>
@@ -52,20 +49,21 @@ <% if (note.hasChildren()) { %> + <% } else if (isEmpty) { %> +

This note has no content.

<% } %>