diff --git a/background/style-manager.js b/background/style-manager.js index b976ef20..b846ec3d 100644 --- a/background/style-manager.js +++ b/background/style-manager.js @@ -159,7 +159,7 @@ const styleMan = (() => { /** @returns {Promise>}>} */ async getAllOrdered(keys) { if (ready.then) await ready; - const res = mapObj(orderWrap.value, group => group.map(uuid2style)); + const res = mapObj(orderWrap.value, group => group.map(uuid2style).filter(Boolean)); if (res.main.length + res.prio.length < dataMap.size) { for (const {style} of dataMap.values()) { if (!(style.id in order.main) && !(style.id in order.prio)) {