From d117bed0290c3a2db0c87bafb83507e72682064c Mon Sep 17 00:00:00 2001 From: Gabriel Horner Date: Thu, 15 Jan 2026 10:14:46 -0500 Subject: [PATCH] chore: remove unused file graph tx-meta options --- src/main/frontend/modules/outliner/pipeline.cljs | 7 +------ src/main/frontend/worker/pipeline.cljs | 5 +---- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/src/main/frontend/modules/outliner/pipeline.cljs b/src/main/frontend/modules/outliner/pipeline.cljs index ee7a1f8f79..ad8e80789b 100644 --- a/src/main/frontend/modules/outliner/pipeline.cljs +++ b/src/main/frontend/modules/outliner/pipeline.cljs @@ -26,7 +26,7 @@ ;; (prn :debug ;; :tx-meta tx-meta ;; :tx-data tx-data) - (let [{:keys [from-disk? new-graph? initial-pages? end?]} tx-meta + (let [{:keys [initial-pages? end?]} tx-meta tx-report {:tx-meta tx-meta :tx-data tx-data}] (when (= repo (state/get-current-repo)) @@ -50,11 +50,6 @@ (state/pub-event! [:init/commands]) (ui-handler/re-render-root!))) - (or from-disk? new-graph?) - (do - (d/transact! conn tx-data tx-meta) - (ui-handler/re-render-root!)) - :else (do (state/set-state! :db/latest-transacted-entity-uuids diff --git a/src/main/frontend/worker/pipeline.cljs b/src/main/frontend/worker/pipeline.cljs index 5b5790ba53..7dd8fddedd 100644 --- a/src/main/frontend/worker/pipeline.cljs +++ b/src/main/frontend/worker/pipeline.cljs @@ -530,12 +530,9 @@ (defn invoke-hooks [conn {:keys [tx-meta] :as tx-report} context] - (let [{:keys [from-disk? new-graph? transact-new-graph-refs?]} tx-meta] + (let [{:keys [transact-new-graph-refs?]} tx-meta] (when-not transact-new-graph-refs? (cond - (or from-disk? new-graph?) - {:tx-report tx-report} - ;; Rebuild refs for a new DB graph using EDN or when EDN data is imported. ;; Ref rebuilding happens here because transact-pipeline doesn't rebuild refs ;; for these cases