Skip to content

Commit 380f18e

Browse files
author
Andrei Bratu
committed
handle undefined version
1 parent d4d9f82 commit 380f18e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/eval_utils/run.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ export async function runEval(
204204
}
205205
}
206206

207-
const { callable, version, ...rest } = file;
207+
let { callable, version, ...rest } = file;
208+
version = version || {};
208209
let hlFile: FileResponse;
209210
switch (type) {
210211
case "flow": {

0 commit comments

Comments
 (0)