Fix: the return value of getSectionsByUrl is changed
This commit is contained in:
parent
3122d28c1a
commit
196b6aac63
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user