Skip to content

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

web: read trash cleanup interval from db on startup

Abdullah Atta8e795b729aa2
diff --git a/apps/web/src/views/settings.js b/apps/web/src/views/settings.js
index 01cd68296..60cfffad5 100644
--- a/apps/web/src/views/settings.js
+++ b/apps/web/src/views/settings.js
@@ -199,7 +199,9 @@ function Settings() {
"backupReminderOffset",
0
);
- const [trashCleanupInterval, setTrashCleanupInterval] = useState(7);
+ const [trashCleanupInterval, setTrashCleanupInterval] = useState(
+ db.settings.getTrashCleanupInterval()
+ );
const [debugMode, setDebugMode] = usePersistentState("debugMode", false);
const [homepage, setHomepage] = usePersistentState("homepage", 0);
const [backupStorageLocation, setBackupStorageLocation] = usePersistentState(