Skip to content

Commit 13197e6

Browse files
committed
use bodyFormat propDefinition
1 parent a30be42 commit 13197e6

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

components/confluence/actions/get-page-by-id/get-page-by-id.mjs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import confluence from "../../confluence.app.mjs";
2-
import { BODY_FORMAT_FULL_OPTIONS } from "../../common/constants.mjs";
32
import { parseObjectEntries } from "../../common/utils.mjs";
43

54
export default {
@@ -22,11 +21,10 @@ export default {
2221
],
2322
},
2423
bodyFormat: {
25-
type: "string",
26-
label: "Body Format",
27-
description: "The content format types to be returned in the `body` field of the response. If available, the representation will be available under a response field of the same name under the `body` field.",
28-
optional: true,
29-
options: BODY_FORMAT_FULL_OPTIONS,
24+
propDefinition: [
25+
confluence,
26+
"bodyFormat",
27+
],
3028
},
3129
getDraft: {
3230
type: "boolean",

0 commit comments

Comments
 (0)