mirror of
https://github.com/logseq/logseq.git
synced 2026-05-24 12:44:22 +00:00
fix(rtc): add :db/ident in :update-page op
This commit is contained in:
@@ -193,12 +193,13 @@
|
||||
|
||||
(defmethod local-block-ops->remote-ops-aux :update-page-op
|
||||
[_ & {:keys [db block-uuid *remote-ops]}]
|
||||
(when-let [{page-name :block/name title :block/title}
|
||||
(when-let [{page-name :block/name title :block/title db-ident :db/ident}
|
||||
(d/entity db [:block/uuid block-uuid])]
|
||||
(swap! *remote-ops conj
|
||||
[:update-page {:block-uuid block-uuid
|
||||
:page-name page-name
|
||||
:block/title (or title page-name)}])))
|
||||
[:update-page (cond-> {:block-uuid block-uuid
|
||||
:page-name page-name
|
||||
:block/title (or title page-name)}
|
||||
db-ident (assoc :db/ident db-ident))])))
|
||||
|
||||
(defmethod local-block-ops->remote-ops-aux :remove-op
|
||||
[_ & {:keys [db remove-op *remote-ops]}]
|
||||
|
||||
@@ -43,6 +43,7 @@
|
||||
[:cat :keyword
|
||||
[:map
|
||||
[:block-uuid :uuid]
|
||||
[:db/ident {:optional true} :keyword]
|
||||
[:page-name :string]
|
||||
[:block/title :string]]]]
|
||||
[:remove-page
|
||||
|
||||
Reference in New Issue
Block a user