Skip to content

Commit 0eca5e8

Browse files
type safety improvements
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent 473ea94 commit 0eca5e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/sim/blocks/blocks/dagster.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ Return ONLY a valid JSON object - no explanations, no extra text.`,
149149
tool: (params) => `dagster_${params.operation}`,
150150
params: (params) => {
151151
const result: Record<string, unknown> = {}
152-
if (params.limit) result.limit = Number(params.limit)
152+
if (params.limit != null && params.limit !== '') result.limit = Number(params.limit)
153153
// Map list_runs job name filter to the correct param
154154
if (params.listRunsJobName) result.jobName = params.listRunsJobName
155155
return result

apps/sim/tools/dagster/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export interface DagsterBaseParams {
55
/** Dagster host URL (e.g., https://myorg.dagster.cloud/prod or http://localhost:3001) */
66
host: string
77
/** Dagster+ API token */
8-
apiKey: string
8+
apiKey?: string
99
}
1010

1111
/** Launch Run */

0 commit comments

Comments
 (0)