Skip to content

Commit

Permalink
fix: blocks failed to create because article id is not valid uuid str…
Browse files Browse the repository at this point in the history
…ing (#165)
  • Loading branch information
sywhb committed Nov 21, 2023
1 parent 388dd11 commit 0ba02af
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
LSPluginBaseInfo,
} from '@logseq/libs/dist/LSPlugin'
import { PageEntity } from '@logseq/libs/dist/LSPlugin.user'
import { setup as l10nSetup, t } from 'logseq-l10n'; //https://github.com/sethyuan/logseq-l10n
import { setup as l10nSetup, t } from 'logseq-l10n' //https://github.com/sethyuan/logseq-l10n
import { DateTime } from 'luxon'
import {
Article,
Expand Down Expand Up @@ -409,7 +409,6 @@ const fetchOmnivore = async (inBackground = false) => {
highlight,
{
sibling: false,
keepUUID: true,
}
)
}
Expand All @@ -421,7 +420,6 @@ const fetchOmnivore = async (inBackground = false) => {
highlightsBlock,
{
sibling: false,
keepUUID: true,
}
)
}
Expand Down Expand Up @@ -451,7 +449,6 @@ const fetchOmnivore = async (inBackground = false) => {
await logseq.Editor.insertBatchBlock(targetBlockId, articleBatch, {
before: true,
sibling: false,
keepUUID: true,
})
}
}
Expand Down

0 comments on commit 0ba02af

Please sign in to comment.