Skip to content

Commit

Permalink
rfct: use contains-op? to filter op list
Browse files Browse the repository at this point in the history
  • Loading branch information
filipesilva committed Apr 12, 2022
1 parent faf493f commit b180ecf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cljs/athens/events.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -1638,10 +1638,10 @@
new-uids (graph-ops/ops->new-block-uids op)
[_rm add] (graph-ops/structural-diff @db/dsdb op)
event (common-events/build-atomic-event op)
focus-uid (->> op
:op/consequences
(some #(when (= :block/new (:op/type %))
(-> % :op/args :block/uid))))]
focus-uid (-> (graph-ops/contains-op? op :block/new)
first
:op/args
:block/uid)]
(log/debug "paste internal event is" (pr-str event))
{:fx [[:async-flow {:id :paste-internal-async-flow
:db-path [:async-flow :paste-internal]
Expand Down

0 comments on commit b180ecf

Please sign in to comment.