Skip to content

Commit

Permalink
Merge pull request #60 from ega4432/feature/checkbox
Browse files Browse the repository at this point in the history
Fixed reversed checkbox value
  • Loading branch information
ega4432 authored Mar 3, 2023
2 parents c813a90 + ffea006 commit d5eda62
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/utils/notion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const convertPropertiesToFrontmatter = (page: PageObjectResponse) => {

switch (value.type) {
case 'checkbox':
frontmatter[property] = !value.checkbox;
frontmatter[property] = value.checkbox;
break;
case 'date': {
let date = value.date?.start ?? '';
Expand Down

0 comments on commit d5eda62

Please sign in to comment.