File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1287,7 +1287,10 @@ const clientOpts: BackendClientOpts = {
12871287const pd: BackendClient = createBackendClient (clientOpts );
12881288
12891289// Retrieve the "New Issue (Instant)" component for the Gitlab app
1290- const response: GetComponentResponse = await pd .getComponent (" gitlab-new-issue" );
1290+ const requestOpts: GetComponentOpts = {
1291+ key: " gitlab-new-issue" ,
1292+ };
1293+ const response: GetComponentResponse = await pd .getComponent (requestOpts );
12911294
12921295const {
12931296 data // The "New Issue (Instant)" component for the Gitlab app
@@ -1311,7 +1314,7 @@ const pd = createBackendClient({
13111314});
13121315
13131316// Retrieve the "New Issue (Instant)" component for the Gitlab app
1314- const { data: component } = await pd .getComponent (" gitlab-new-issue" );
1317+ const { data: component } = await pd .getComponent ({ key : " gitlab-new-issue" } );
13151318
13161319// Parse and return the data you need
13171320```
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ Commits** action for Gitlab:
231231<Tabs items = { [' Node.js' , ' HTTP (cURL)' ]} >
232232<Tabs.Tab >
233233``` javascript
234- const component = await pd .getComponent (" gitlab-list-commits" );
234+ const component = await pd .getComponent ({ key : " gitlab-list-commits" } );
235235
236236// Parse and return the data you need
237237```
You can’t perform that action at this time.
0 commit comments