File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
deps/outliner/src/logseq/outliner Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 284284 (assert (ds/outliner-txs-state? *txs-state)
285285 " db should be satisfied outliner-tx-state?" )
286286 (let [db-based? (sqlite-util/db-based-graph? repo)
287- data (cond->> this
288- db-based?
289- (remove-inline-page-classes db))
290- data' (cond->
291- (if (de/entity? data)
292- (assoc (.-kv ^js data) :db/id (:db/id data))
293- data)
294- db-based?
295- (dissoc :block/properties ))
287+ data (if (de/entity? this)
288+ (assoc (.-kv ^js this) :db/id (:db/id this))
289+ this)
290+ data' (if db-based?
291+ (->> (dissoc data :block/properties )
292+ (remove-inline-page-classes db))
293+ data)
296294 collapse-or-expand? (= outliner-op :collapse-expand-blocks )
297295 m* (cond->
298296 (-> data'
You can’t perform that action at this time.
0 commit comments