From 1d911687e6af004ee6d518cf1bc4359b5e1c254c Mon Sep 17 00:00:00 2001 From: Tienson Qin Date: Tue, 2 Dec 2025 15:30:52 +0800 Subject: [PATCH] fix: remove unneeded error on failed to parse data to journal --- src/main/frontend/handler/page.cljs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/frontend/handler/page.cljs b/src/main/frontend/handler/page.cljs index 83d19e9658..2ef5555fb7 100644 --- a/src/main/frontend/handler/page.cljs +++ b/src/main/frontend/handler/page.cljs @@ -334,10 +334,10 @@ (not (:graph/importing @state/state)) (not (state/loading-files? repo)) (not config/publishing?)) - (state/set-today! (date/today)) - (when (or (config/db-based-graph? repo) - (config/local-file-based-graph? repo)) - (if-let [title (date/today)] + (when-let [title (date/today)] + (state/set-today! title) + (when (or (config/db-based-graph? repo) + (config/local-file-based-graph? repo)) (let [today-page (util/page-name-sanity-lc title) format (state/get-preferred-format repo) db-based? (config/db-based-graph? repo) @@ -361,8 +361,7 @@ (fs/read-file repo-dir file-rpath))] (when (or (not file-exists?) (and file-exists? (string/blank? file-content))) - (create-f)))))) - (notification/show! "Failed to parse date to journal name." :error)))))) + (create-f))))))))))) (defn open-today-in-sidebar []