Skip to content

Commit 749f1a3

Browse files
committed
Fix optional chaining in base-page-builder and update block description for clarity
1 parent 8aff361 commit 749f1a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/notion/actions/common/base-page-builder.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default {
8484
.map((property) => ({
8585
type: properties[property]?.type ?? property,
8686
label: property,
87-
value: this[property] || this.properties[property],
87+
value: this[property] || this.properties?.[property],
8888
}));
8989
},
9090
/**

components/notion/actions/update-block/update-block.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default {
2323
content: {
2424
type: "string",
2525
label: "Content",
26-
description: "The content of the block. [See the documentation](https://developers.notion.com/reference/block#block-type-object)",
26+
description: "The content of the block. **E.g. {\"code\": {\"rich_text\":[{\"type\":\"text\",\"text\":{\"content\":\"Updated content\"}]}}** [See the documentation](https://developers.notion.com/reference/update-a-block)",
2727
},
2828
},
2929
async run({ $ }) {

0 commit comments

Comments
 (0)