From 602bdce21cb68ca14f1b65b15327ba67acbcec82 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Wed, 7 Feb 2024 21:07:05 +0100 Subject: [PATCH] fix split on null --- cli/script.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/script.ts b/cli/script.ts index 6748410b1f..b7679daede 100644 --- a/cli/script.ts +++ b/cli/script.ts @@ -211,7 +211,7 @@ export async function handleFile( path: remotePath.replaceAll("\\", "/"), summary: typed?.summary ?? "", kind: typed?.kind, - lock: lockfileUseArray ? typed?.lock.split("\n") : typed?.lock, + lock: lockfileUseArray ? typed?.lock?.split("\n") : typed?.lock, parent_hash: undefined, schema: typed?.schema, tag: typed?.tag,