Skip to content

Commit 9ab3e10

Browse files
Fixing over-zealous Claude
1 parent c433a25 commit 9ab3e10

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

docs-v2/pages/connect/api.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,10 @@ const clientOpts: BackendClientOpts = {
12871287
const 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

12921295
const {
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
```

docs-v2/pages/connect/components.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
```

0 commit comments

Comments
 (0)