Skip to content

Commit

Permalink
fix(modifiers): update checking if it is applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
quanho committed Feb 13, 2020
1 parent 86094fc commit c1d7120
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/expression-modifiers/helper.js
Expand Up @@ -328,6 +328,9 @@ function isApplicable({
minDimensions = 1,
maxDimensions = 2,
}) {
if (!properties && !layout) {
return true;
}
const numDimensions = getNumDimensions({ properties, layout });
return numDimensions >= minDimensions && numDimensions <= maxDimensions;
}
Expand Down

0 comments on commit c1d7120

Please sign in to comment.