Fixed problem with buffer models

This commit is contained in:
Alexander Cerutti
2019-07-11 23:27:20 +02:00
parent 29a90d7dc2
commit ef4ce53dd6

View File

@@ -149,7 +149,8 @@ export function getModelBufferContents(model: BundleUnit): PartitionedBundle {
const rawBundle = removeHidden(Object.keys(model)).reduce<BundleUnit>((acc, current) => { const rawBundle = removeHidden(Object.keys(model)).reduce<BundleUnit>((acc, current) => {
// Checking if current file is one of the autogenerated ones or if its // Checking if current file is one of the autogenerated ones or if its
// content is not available // content is not available
if (/(manifest|signature)/.test(current) || !rawBundle[current]) {
if (/(manifest|signature)/.test(current) || !model[current]) {
return acc; return acc;
} }