Fix: don't send null value

This commit is contained in:
eight 2018-10-14 00:38:49 +08:00
parent ff3bf6f52d
commit b9968830d3

View File

@ -331,8 +331,11 @@ const styleManager = (() => {
);
}
if (id) {
if (cache.sections[id]) {
return {[id]: cache.sections[id]};
}
return {};
}
return cache.sections;
function buildCache(styleList) {