diff --git a/src/main/frontend/extensions/srs.cljs b/src/main/frontend/extensions/srs.cljs index 75c9adf3d3..31fd89d18e 100644 --- a/src/main/frontend/extensions/srs.cljs +++ b/src/main/frontend/extensions/srs.cljs @@ -107,7 +107,8 @@ [block props] (editor-handler/save-block-if-changed! block - (property-edit/insert-properties-when-file-based (:block/format block) (:block/content block) props) + (property-edit/insert-properties-when-file-based + (state/get-current-repo) (:block/format block) (:block/content block) props) {:force? true})) (defn- reset-block-card-properties! @@ -773,7 +774,8 @@ [block-id] (when-let [block (db/entity [:block/uuid block-id])] (when-let [content (:block/content block)] - (let [content (-> (property-edit/remove-built-in-properties-when-file-based (:block/format block) content) + (let [content (-> (property-edit/remove-built-in-properties-when-file-based + (state/get-current-repo) (:block/format block) content) (drawer/remove-logbook))] (editor-handler/save-block! (state/get-current-repo) @@ -785,7 +787,7 @@ ([block-ids] (let [block-content-fn (fn [block] [block (-> (property-edit/remove-built-in-properties-when-file-based - (:block/format block) (:block/content block)) + (state/get-current-repo) (:block/format block) (:block/content block)) (drawer/remove-logbook) string/trim (str " #" card-hash-tag))]) diff --git a/src/main/frontend/handler/page.cljs b/src/main/frontend/handler/page.cljs index 0c181711d6..a347b42318 100644 --- a/src/main/frontend/handler/page.cljs +++ b/src/main/frontend/handler/page.cljs @@ -473,6 +473,7 @@ (= :markdown (:block/format properties-block)))] {:db/id (:db/id properties-block) :block/content (property-edit/insert-property-when-file-based + repo (:block/format properties-block) properties-content :title