mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
fix: imported page not showing up
root needed to be re-rendered like with file graph import
This commit is contained in:
@@ -15,7 +15,8 @@
|
||||
[logseq.db.frontend.property :as db-property]
|
||||
[logseq.db.sqlite.export :as sqlite-export]
|
||||
[logseq.shui.ui :as shui]
|
||||
[promesa.core :as p]))
|
||||
[promesa.core :as p]
|
||||
[frontend.handler.ui :as ui-handler]))
|
||||
|
||||
;; Fns used between menus and commands
|
||||
(defn show-entity-data
|
||||
@@ -94,10 +95,14 @@
|
||||
;; TODO: Use metadata that supports undo
|
||||
(db/transact! (state/get-current-repo) init-tx
|
||||
(if import-block? {:save-block true} {::sqlite-export/imported-data? true}))
|
||||
|
||||
(when (seq block-props-tx)
|
||||
(db/transact! (state/get-current-repo) block-props-tx
|
||||
(if import-block? {:save-block true} {::sqlite-export/imported-data? true})))
|
||||
|
||||
(when-not import-block?
|
||||
(state/clear-async-query-state!)
|
||||
(ui-handler/re-render-root!)
|
||||
(notification/show! "Import successful!" :success))))
|
||||
;; Also close cmd-k
|
||||
(shui/dialog-close-all!)))))
|
||||
|
||||
Reference in New Issue
Block a user