Skip to content

Commit

Permalink
#1199: Fix merge patterns when needed
Browse files Browse the repository at this point in the history
  • Loading branch information
JosefBredereck committed May 6, 2020
1 parent fa75d46 commit b0a880a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/lib/pseudopattern_hunter.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ pseudopattern_hunter.prototype.find_pseudopatterns = function(
(objValue, srcValue) => {
if (
_.isArray(objValue) &&
patternlab.config.patternMergeVariantArrays
!patternlab.config.patternMergeVariantArrays
) {
return objValue.concat(srcValue);
return srcValue;
}
// Lodash will only check for "undefined" and eslint needs a consistent
// return so do not remove
Expand Down

0 comments on commit b0a880a

Please sign in to comment.