Fix: the return value of getSectionsByUrl is changed

This commit is contained in:
eight 2018-10-06 15:16:00 +08:00
parent 3122d28c1a
commit 196b6aac63

View File

@ -67,8 +67,8 @@
return matchUrl;
}
function buildSections(result) {
return Object.entries(result).map(([id, code]) => ({id: +id, code}));
function buildSections(cache) {
return Object.values(cache);
}
/**