Skip to content

Commit f97d268

Browse files
committed
Filter __mediaQueries for output
1 parent bfb831a commit f97d268

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ function filterMq(obj) {
1414
}
1515

1616
function filterNonMq(obj) {
17-
return Object.keys(obj)
18-
.filter(key => !isMediaQuery(key))
19-
.reduce((out, key) => {
17+
return Object.keys(obj).reduce((out, key) => {
18+
if (!isMediaQuery(key) && key !== "__mediaQueries") {
2019
out[key] = obj[key];
21-
return out;
22-
}, {});
20+
}
21+
return out;
22+
}, {});
2323
}
2424

2525
const mFilterMq = memoize(filterMq);

0 commit comments

Comments
 (0)