Skip to content

Commit

Permalink
fix(issue:3622) add incorrectly removed code back
Browse files Browse the repository at this point in the history
* Fix for issue #3622. Add incorrectly removed code back in for merge.
  • Loading branch information
puckowski committed Dec 11, 2024
1 parent afc5557 commit 77a275f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/less/src/less/parser/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,9 @@ const Parser = function Parser(context, imports, fileInfo, currentIndex) {
} else {
if (allExtends) { error('Extend can only be used at the end of selector'); }
c = parserInput.currentChar();
if (elements) {
if (Array.isArray(e)){
e.forEach(ele => elements.push(ele));
} if (elements) {
elements.push(e);
} else {
elements = [ e ];
Expand Down

0 comments on commit 77a275f

Please sign in to comment.