Skip to content

Commit

Permalink
Bump version and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
c6p committed May 15, 2022
1 parent 4111575 commit 2298c95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "logseq-hypothesis",
"version": "0.2.1",
"version": "0.2.2",
"main": "dist/index.html",
"author": "c6p",
"scripts": {
"dev": "vite build --watch",
"build": "vite build",
"preinstall": "npx only-allow pnpm",
"format": "prettier --write '**/*.{js,jsx,ts,tsx,vue}'"
"format": "prettier --write **/*.{js,jsx,ts,tsx,vue}"
},
"license": "MIT",
"dependencies": {
Expand Down
6 changes: 3 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,7 @@ export default {
// upgrade pre-block with page-properties from old format
const newFormat = "preBlock?" in pagePropBlock;
if (!newFormat)
await logseq.Editor.updateBlock(pagePropBlock.uuid, "");
if (!newFormat) await logseq.Editor.updateBlock(pagePropBlock.uuid, "");
await Object.entries(pageProperties).map(async ([property, value]) => {
await logseq.Editor.upsertBlockProperty(
pagePropBlock.uuid,
Expand All @@ -382,7 +381,8 @@ export default {
});
// workaround to force preBlock? - see https://github.com/logseq/logseq/issues/5298
if (!newFormat) {
const content = (await logseq.Editor.getBlock(pagePropBlock.uuid)).content;
const content = (await logseq.Editor.getBlock(pagePropBlock.uuid))
.content;
await logseq.Editor.updateBlock(pagePropBlock.uuid, "");
await logseq.Editor.updateBlock(pagePropBlock.uuid, content);
}
Expand Down

0 comments on commit 2298c95

Please sign in to comment.