From a68424658aa573ec8ec5b410a9e971f9f7fa37dd Mon Sep 17 00:00:00 2001 From: Tom Najdek Date: Mon, 6 Nov 2023 18:34:51 +0100 Subject: [PATCH] Fix a bug in the build process Fixes TypeError: Cannot read properties of undefined (reading 'toFixed') --- js-build/watch.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js-build/watch.js b/js-build/watch.js index 8534eb1a34..06259041dd 100644 --- a/js-build/watch.js +++ b/js-build/watch.js @@ -108,7 +108,9 @@ async function getWatch() { result = await getSymlinks(path, { nodir: true }, signatures); } - onSuccess(result); + if (result) { + onSuccess(result); + } onSuccess(await cleanUp(signatures)); if (shouldAddOmni && result.outFiles?.length) {