Skip to content

Commit

Permalink
fix(core): replace unsupported Object.entries
Browse files Browse the repository at this point in the history
fixes #4341
  • Loading branch information
nolimits4web committed Mar 17, 2021
1 parent b7bbbf1 commit 6dff71d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/core/classes/addClasses.js
Expand Up @@ -2,8 +2,8 @@ function prepareClasses(entries, prefix) {
const resultClasses = [];
entries.forEach((item) => {
if (typeof item === 'object') {
Object.entries(item).forEach(([classNames, condition]) => {
if (condition) {
Object.keys(item).forEach((classNames) => {
if (item[classNames]) {
resultClasses.push(prefix + classNames);
}
});
Expand Down

0 comments on commit 6dff71d

Please sign in to comment.