Skip to content

Commit

Permalink
Merge pull request #10 from nguyenngocphuongnb/FixMissingAsset
Browse files Browse the repository at this point in the history
Fix integrity error when currentAsset is undefined 🐛
  • Loading branch information
themgoncalves authored Apr 16, 2019
2 parents 9a3dc15 + cdf6394 commit 43c325e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/ReactLoadableSSRAddon.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export default class ReactLoadableSSRAddon {

for (let i = 0; i < files.length; i += 1) {
const file = files[i];
const currentAsset = originAssets[file];
const currentAsset = originAssets[file] || {};
const ext = getFileExtension(file).replace(/^\.+/, '').toLowerCase();

if (!assets[id]) { assets[id] = {}; }
Expand Down

0 comments on commit 43c325e

Please sign in to comment.