Skip to content

Commit 2161c0b

Browse files
committed
docs: fix variable shadowing in management API overview example
The list example declared `const runs = await runs.list(...)`, which shadowed the imported `runs` and threw at runtime. Rename the local to `completedRuns`.
1 parent a36f25a commit 2161c0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/management/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ configure({
3737
});
3838

3939
async function main() {
40-
const runs = await runs.list({
40+
const completedRuns = await runs.list({
4141
limit: 10,
4242
status: ["COMPLETED"],
4343
});

0 commit comments

Comments
 (0)