From 4b4b38c9f466265e8ee07f5cac0b961ba990811d Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 7 Apr 2024 12:03:28 -0300 Subject: upd8: handle empty additional file entries --- src/upd8.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/upd8.js b/src/upd8.js index 66765f1d..6bd52da9 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -1685,7 +1685,7 @@ async function main() { ...(track.midiProjectFiles ?? []), ]), ] - .flatMap((fileGroup) => fileGroup.files) + .flatMap((fileGroup) => fileGroup.files ?? []) .map((file) => ({ device: path.join( mediaPath, -- cgit 1.3.0-6-gf8a5