diff --git a/background/storage.js b/background/storage.js index c95b9652..f761bc13 100644 --- a/background/storage.js +++ b/background/storage.js @@ -249,9 +249,9 @@ function filterStyles({ if (!omitCode) return styles; if (!asHash) return styles.map(getStyleWithNoCode); for (const id in styles) { - const style = styles[id]; - if (style && style.sections) { - styles[id] = getStyleWithNoCode(style); + const sections = styles[id]; + if (Array.isArray(sections)) { + styles[id] = getStyleWithNoCode({sections}).sections; } } return styles;