Fix: the return value of getSectionsByUrl is changed
This commit is contained in:
parent
3122d28c1a
commit
196b6aac63
|
@ -67,8 +67,8 @@
|
||||||
return matchUrl;
|
return matchUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildSections(result) {
|
function buildSections(cache) {
|
||||||
return Object.entries(result).map(([id, code]) => ({id: +id, code}));
|
return Object.values(cache);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user