Fix a bug in the build process

Fixes TypeError: Cannot read properties of undefined (reading 'toFixed')
This commit is contained in:
Tom Najdek 2023-11-06 18:34:51 +01:00 committed by Dan Stillman
parent fe6fdd3ff6
commit a68424658a

View file

@ -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) {