hotfix: fix empty assets array

This commit is contained in:
Jonathan Rainville 2018-10-22 14:25:18 -04:00 committed by Pascal Precht
parent df2aa30fb4
commit b6d89d9001
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D

View File

@ -168,7 +168,7 @@ class Engine {
});
};
const cargo = async.cargo((tasks, callback) => {
const modifiedAssets = tasks.map(task => task.modifiedAsset);
const modifiedAssets = tasks.map(task => task.modifiedAsset).filter(asset => asset); // filter null elements
generateCode(modifiedAssets);
self.events.once('outputDone', callback);
});