fix split on null

This commit is contained in:
Ruben Fiszel
2024-02-07 21:07:05 +01:00
parent ad60535165
commit 602bdce21c
+1 -1
View File
@@ -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,