Skip to content

Commit b0a880a

Browse files
#1199: Fix merge patterns when needed
1 parent fa75d46 commit b0a880a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/lib/pseudopattern_hunter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ pseudopattern_hunter.prototype.find_pseudopatterns = function(
6767
(objValue, srcValue) => {
6868
if (
6969
_.isArray(objValue) &&
70-
patternlab.config.patternMergeVariantArrays
70+
!patternlab.config.patternMergeVariantArrays
7171
) {
72-
return objValue.concat(srcValue);
72+
return srcValue;
7373
}
7474
// Lodash will only check for "undefined" and eslint needs a consistent
7575
// return so do not remove

0 commit comments

Comments
 (0)