mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-06 09:17:55 +08:00
Fix cache errors
Reviewed By: yungsters Differential Revision: D2806495 fb-gh-sync-id: 4c1088cde8f0b88070f31b3a130b66f20a2a07cb
This commit is contained in:
committed by
facebook-github-bot-4
parent
5a4ee0bfaa
commit
f421d2b056
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user