mirror of
https://github.com/embarklabs/embark.git
synced 2025-01-11 14:24:24 +00:00
hotfix: fix empty assets array
This commit is contained in:
parent
df2aa30fb4
commit
b6d89d9001
@ -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);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user