Skip to content

Commit

Permalink
Fix cache errors
Browse files Browse the repository at this point in the history
Reviewed By: yungsters

Differential Revision: D2806495

fb-gh-sync-id: 4c1088cde8f0b88070f31b3a130b66f20a2a07cb
  • Loading branch information
martinbigio authored and facebook-github-bot-4 committed Jan 6, 2016
1 parent 5a4ee0b commit f421d2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packager/react-packager/src/DependencyResolver/Cache/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ class Cache {
.then(values => {
var json = Object.create(null);
Object.keys(data).forEach((key, i) => {
if (!values[i]) {
return;
}

json[key] = Object.create(null);
json[key].metadata = data[key].metadata;
json[key].data = values[i].data;
Expand Down

0 comments on commit f421d2b

Please sign in to comment.