From 196b6aac638664e8d7816d9558404fcfa10b2653 Mon Sep 17 00:00:00 2001 From: eight Date: Sat, 6 Oct 2018 15:16:00 +0800 Subject: [PATCH] Fix: the return value of getSectionsByUrl is changed --- content/apply.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/apply.js b/content/apply.js index 1986e147..ca7c09fe 100644 --- a/content/apply.js +++ b/content/apply.js @@ -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); } /**