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,7 +331,10 @@ const styleManager = (() => {
); );
} }
if (id) { if (id) {
return {[id]: cache.sections[id]}; if (cache.sections[id]) {
return {[id]: cache.sections[id]};
}
return {};
} }
return cache.sections; return cache.sections;