Skip to content

Commit 2298c95

Browse files
committed
Bump version and formatting
1 parent 4111575 commit 2298c95

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "logseq-hypothesis",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"main": "dist/index.html",
55
"author": "c6p",
66
"scripts": {
77
"dev": "vite build --watch",
88
"build": "vite build",
99
"preinstall": "npx only-allow pnpm",
10-
"format": "prettier --write '**/*.{js,jsx,ts,tsx,vue}'"
10+
"format": "prettier --write **/*.{js,jsx,ts,tsx,vue}"
1111
},
1212
"license": "MIT",
1313
"dependencies": {

src/App.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,7 @@ export default {
371371
372372
// upgrade pre-block with page-properties from old format
373373
const newFormat = "preBlock?" in pagePropBlock;
374-
if (!newFormat)
375-
await logseq.Editor.updateBlock(pagePropBlock.uuid, "");
374+
if (!newFormat) await logseq.Editor.updateBlock(pagePropBlock.uuid, "");
376375
await Object.entries(pageProperties).map(async ([property, value]) => {
377376
await logseq.Editor.upsertBlockProperty(
378377
pagePropBlock.uuid,
@@ -382,7 +381,8 @@ export default {
382381
});
383382
// workaround to force preBlock? - see https://github.com/logseq/logseq/issues/5298
384383
if (!newFormat) {
385-
const content = (await logseq.Editor.getBlock(pagePropBlock.uuid)).content;
384+
const content = (await logseq.Editor.getBlock(pagePropBlock.uuid))
385+
.content;
386386
await logseq.Editor.updateBlock(pagePropBlock.uuid, "");
387387
await logseq.Editor.updateBlock(pagePropBlock.uuid, content);
388388
}

0 commit comments

Comments
 (0)