mirror of
https://github.com/logseq/logseq.git
synced 2026-04-26 07:05:10 +00:00
fix: duplicated block ids in multiple files (#8668)
fix: duplicate block ids in multiple files Co-authored-by: Gabriel Horner <gabriel@logseq.com>
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
(defn extract-blocks
|
||||
"Wrapper around logseq.graph-parser.block/extract-blocks that adds in system state
|
||||
and handles unexpected failure."
|
||||
[blocks content format {:keys [with-id?]
|
||||
[blocks content format {:keys [with-id? page-name]
|
||||
:or {with-id? true}}]
|
||||
(try
|
||||
(gp-block/extract-blocks blocks content with-id? format
|
||||
@@ -25,7 +25,8 @@ and handles unexpected failure."
|
||||
:block-pattern (config/get-block-pattern format)
|
||||
:supported-formats (gp-config/supported-formats)
|
||||
:db (db/get-db (state/get-current-repo))
|
||||
:date-formatter (state/get-date-formatter)})
|
||||
:date-formatter (state/get-date-formatter)
|
||||
:page-name page-name})
|
||||
(catch :default e
|
||||
(log/error :exception e)
|
||||
(state/pub-event! [:capture-error {:error e
|
||||
|
||||
Reference in New Issue
Block a user