« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/upd8.js2
1 files changed, 1 insertions, 1 deletions
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,