Fix: don't send null value
This commit is contained in:
parent
ff3bf6f52d
commit
b9968830d3
|
@ -331,8 +331,11 @@ const styleManager = (() => {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
if (id) {
|
if (id) {
|
||||||
|
if (cache.sections[id]) {
|
||||||
return {[id]: cache.sections[id]};
|
return {[id]: cache.sections[id]};
|
||||||
}
|
}
|
||||||
|
return {};
|
||||||
|
}
|
||||||
return cache.sections;
|
return cache.sections;
|
||||||
|
|
||||||
function buildCache(styleList) {
|
function buildCache(styleList) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user