Skip to content

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

fix: show Clear Trash only when there are items in trash

thecodrrc070e1ebed69
diff --git a/apps/web/src/views/trash.js b/apps/web/src/views/trash.js
index 6377321bd..9ecd89977 100644
--- a/apps/web/src/views/trash.js
+++ b/apps/web/src/views/trash.js
@@ -17,7 +17,7 @@ function Trash() {
placeholder={TrashPlaceholder}
items={items}
button={{
- show: true,
+ show: !!items.length,
content: "Clear Trash",
icon: Icon.Trash,
onClick: function () {